diff options
author | fabiocarneiro <fahecs@gmail.com> | 2015-05-27 12:56:17 +0300 |
---|---|---|
committer | fabiocarneiro <fahecs@gmail.com> | 2015-05-27 12:56:17 +0300 |
commit | a2a63d34ebb460174e1a3e8d8022fe3e3ab4b469 (patch) | |
tree | fbfc480352bc711bc03f12849824507e56b5034a /core/Tracker/Request.php | |
parent | b2f5b5489ceca056217fc6663ec6c2c6b052cd42 (diff) |
fix core folder with php-cs-fixer for psr-2
Diffstat (limited to 'core/Tracker/Request.php')
-rw-r--r-- | core/Tracker/Request.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/Tracker/Request.php b/core/Tracker/Request.php index 7eed4104e0..b0ecacc701 100644 --- a/core/Tracker/Request.php +++ b/core/Tracker/Request.php @@ -112,7 +112,6 @@ class Request $shouldAuthenticate = TrackerConfig::getConfigValue('tracking_requests_require_authentication'); if ($shouldAuthenticate) { - try { $idSite = $this->getIdSite(); } catch (Exception $e) { @@ -143,7 +142,6 @@ class Request if ($this->isAuthenticated) { Common::printDebug("token_auth is authenticated!"); } - } else { $this->isAuthenticated = true; Common::printDebug("token_auth authentication not required"); @@ -429,7 +427,7 @@ class Request $isTimestampRecent = $timeFromNow < self::CUSTOM_TIMESTAMP_DOES_NOT_REQUIRE_TOKENAUTH_WHEN_NEWER_THAN; if (!$isTimestampRecent) { - if(!$this->isAuthenticated()) { + if (!$this->isAuthenticated()) { Common::printDebug(sprintf("Custom timestamp is %s seconds old, requires &token_auth...", $timeFromNow)); Common::printDebug("WARN: Tracker API 'cdt' was used with invalid token_auth"); return false; @@ -739,7 +737,7 @@ class Request */ public function getUserIdHashed($userId) { - return substr( sha1( $userId ), 0, 16); + return substr(sha1($userId), 0, 16); } /** |