From 7b65ca25e68b97fd89640ee1514b42ccee82b47d Mon Sep 17 00:00:00 2001 From: Fabian Becker <fabian.becker@uni-tuebingen.de> Date: Sun, 1 Sep 2013 23:26:37 +0200 Subject: [PATCH] Small code cleanup --- core/Tracker/Request.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/Tracker/Request.php b/core/Tracker/Request.php index 3d77450e1f..755e079891 100644 --- a/core/Tracker/Request.php +++ b/core/Tracker/Request.php @@ -29,6 +29,10 @@ class Request protected $forcedVisitorId = false; + protected $isAuthenticated = false; + + const UNKNOWN_RESOLUTION = 'unknown'; + /** * @param $params * @param bool|string $tokenAuth @@ -56,10 +60,6 @@ class Request $this->authenticateTrackingApi($tokenAuth); } - protected $isAuthenticated = false; - - const UNKNOWN_RESOLUTION = 'unknown'; - /** * @return bool */ @@ -346,7 +346,7 @@ class Request return $customVariables; } - static public function truncateCustomVariable($input) + public static function truncateCustomVariable($input) { return substr(trim($input), 0, Tracker::MAX_LENGTH_CUSTOM_VARIABLE); } @@ -512,7 +512,7 @@ class Request public function getPlugins() { - $pluginsInOrder = array('fla', 'java', 'dir', 'qt', 'realp', 'pdf', 'wma', 'gears', 'ag', 'cookie'); + static $pluginsInOrder = array('fla', 'java', 'dir', 'qt', 'realp', 'pdf', 'wma', 'gears', 'ag', 'cookie'); $plugins = array(); foreach ($pluginsInOrder as $param) { $plugins[] = Common::getRequestVar($param, 0, 'int', $this->params); -- GitLab