Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Raue <christian.raue@gmail.com>2014-07-10 17:45:54 +0400
committerChristian Raue <christian.raue@gmail.com>2014-07-15 14:16:49 +0400
commit317bd7e175f04e09cfb6b42f4a282068524df4e0 (patch)
tree2a6c8bc07bc806229bb7f8dc035198e745b34efb /core/Nonce.php
parentf6de9efc06b11e067fe4f866377a94996628f796 (diff)
fixed method signatures
Diffstat (limited to 'core/Nonce.php')
-rw-r--r--core/Nonce.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/Nonce.php b/core/Nonce.php
index 5e558da1e3..fecaaa7764 100644
--- a/core/Nonce.php
+++ b/core/Nonce.php
@@ -33,7 +33,7 @@ class Nonce
* the nonce will no longer be valid).
* @return string
*/
- static public function getNonce($id, $ttl = 600)
+ public static function getNonce($id, $ttl = 600)
{
// save session-dependent nonce
$ns = new SessionNamespace($id);
@@ -67,7 +67,7 @@ class Nonce
* @param string $cnonce Nonce sent from client.
* @return bool `true` if valid; `false` otherwise.
*/
- static public function verifyNonce($id, $cnonce)
+ public static function verifyNonce($id, $cnonce)
{
$ns = new SessionNamespace($id);
$nonce = $ns->nonce;
@@ -100,7 +100,7 @@ class Nonce
*
* @param string $id The unique nonce ID.
*/
- static public function discardNonce($id)
+ public static function discardNonce($id)
{
$ns = new SessionNamespace($id);
$ns->unsetAll();
@@ -111,7 +111,7 @@ class Nonce
*
* @return string|bool
*/
- static public function getOrigin()
+ public static function getOrigin()
{
if (!empty($_SERVER['HTTP_ORIGIN'])) {
return $_SERVER['HTTP_ORIGIN'];
@@ -124,7 +124,7 @@ class Nonce
*
* @return array
*/
- static public function getAcceptableOrigins()
+ public static function getAcceptableOrigins()
{
$host = Url::getCurrentHost(null);
$port = '';
@@ -160,7 +160,7 @@ class Nonce
* **nonce** query parameter is used.
* @throws Exception if the nonce is invalid. See {@link verifyNonce()}.
*/
- static public function checkNonce($nonceName, $nonce = null)
+ public static function checkNonce($nonceName, $nonce = null)
{
if ($nonce === null) {
$nonce = Common::getRequestVar('nonce', null, 'string');