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.php | |
parent | b2f5b5489ceca056217fc6663ec6c2c6b052cd42 (diff) |
fix core folder with php-cs-fixer for psr-2
Diffstat (limited to 'core/Tracker.php')
-rw-r--r-- | core/Tracker.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/Tracker.php b/core/Tracker.php index 9c22ab804d..ffe64f980c 100644 --- a/core/Tracker.php +++ b/core/Tracker.php @@ -227,7 +227,7 @@ class Tracker public static function disconnectCachedDbConnection() { // code redundancy w/ above is on purpose; above disconnectDatabase depends on method that can potentially be overridden - if (!is_null(self::$db)) { + if (!is_null(self::$db)) { self::$db->disconnect(); self::$db = null; } @@ -243,7 +243,7 @@ class Tracker if (is_null($requestMethod) && array_key_exists('REQUEST_METHOD', $_SERVER)) { $requestMethod = $_SERVER['REQUEST_METHOD']; - } else if (is_null($requestMethod)) { + } elseif (is_null($requestMethod)) { $requestMethod = 'GET'; } @@ -278,7 +278,6 @@ class Tracker // Tests can force the enabling of IP anonymization if (Common::getRequestVar('forceIpAnonymization', false, null, $args) == 1) { - self::getDatabase(); // make sure db is initialized $privacyConfig = new PrivacyManagerConfig(); @@ -326,7 +325,7 @@ class Tracker if ($debugOnDemand) { return (bool) Common::getRequestVar('debug', false); } - } catch(Exception $e) { + } catch (Exception $e) { } return false; |