diff options
author | Christian Raue <christian.raue@gmail.com> | 2014-07-10 17:45:54 +0400 |
---|---|---|
committer | Christian Raue <christian.raue@gmail.com> | 2014-07-15 14:16:49 +0400 |
commit | 317bd7e175f04e09cfb6b42f4a282068524df4e0 (patch) | |
tree | 2a6c8bc07bc806229bb7f8dc035198e745b34efb /core/API | |
parent | f6de9efc06b11e067fe4f866377a94996628f796 (diff) |
fixed method signatures
Diffstat (limited to 'core/API')
-rw-r--r-- | core/API/Proxy.php | 2 | ||||
-rw-r--r-- | core/API/Request.php | 8 | ||||
-rw-r--r-- | core/API/ResponseBuilder.php | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/core/API/Proxy.php b/core/API/Proxy.php index 6c19224200..43d57bcb38 100644 --- a/core/API/Proxy.php +++ b/core/API/Proxy.php @@ -500,7 +500,7 @@ class Proxy extends Singleton private function checkClassIsSingleton($className) { if (!method_exists($className, "getInstance")) { - throw new Exception("$className that provide an API must be Singleton and have a 'static public function getInstance()' method."); + throw new Exception("$className that provide an API must be Singleton and have a 'public static function getInstance()' method."); } } } diff --git a/core/API/Request.php b/core/API/Request.php index 2be21e179e..5c796a067d 100644 --- a/core/API/Request.php +++ b/core/API/Request.php @@ -80,7 +80,7 @@ class Request * `'module=UserSettings&action=getWidescreen'`. * @return array */ - static public function getRequestArrayFromString($request) + public static function getRequestArrayFromString($request) { $defaultRequest = $_GET + $_POST; @@ -227,7 +227,7 @@ class Request * @param string $plugin The plugin name, eg, `'Referrers'`. * @return string The fully qualified API class name, eg, `'\Piwik\Plugins\Referrers\API'`. */ - static public function getClassNameAPI($plugin) + public static function getClassNameAPI($plugin) { return sprintf('\Piwik\Plugins\%s\API', $plugin); } @@ -241,7 +241,7 @@ class Request * @return void * @ignore */ - static public function reloadAuthUsingTokenAuth($request = null) + public static function reloadAuthUsingTokenAuth($request = null) { // if a token_auth is specified in the API request, we load the right permissions $token_auth = Common::getRequestVar('token_auth', '', 'string', $request); @@ -382,7 +382,7 @@ class Request * * @return array|bool */ - static public function getRawSegmentFromRequest() + public static function getRawSegmentFromRequest() { // we need the URL encoded segment parameter, we fetch it from _SERVER['QUERY_STRING'] instead of default URL decoded _GET $segmentRaw = false; diff --git a/core/API/ResponseBuilder.php b/core/API/ResponseBuilder.php index 526ac3b6e0..2c411ffe24 100644 --- a/core/API/ResponseBuilder.php +++ b/core/API/ResponseBuilder.php @@ -459,7 +459,7 @@ class ResponseBuilder * @param array $request * @return array */ - static public function getLabelFromRequest($request) + public static function getLabelFromRequest($request) { $label = Common::getRequestVar('label', array(), 'array', $request); if (empty($label)) { @@ -473,7 +473,7 @@ class ResponseBuilder return $label; } - static public function unsanitizeLabelParameter($label) + public static function unsanitizeLabelParameter($label) { // this is needed because Proxy uses Common::getRequestVar which in turn // uses Common::sanitizeInputValue. This causes the > that separates recursive labels |