diff --git a/modules/restful_token_auth/plugins/authentication/RestfulAuthenticationToken.class.php b/modules/restful_token_auth/plugins/authentication/RestfulAuthenticationToken.class.php index 9240f438..7660b8fd 100644 --- a/modules/restful_token_auth/plugins/authentication/RestfulAuthenticationToken.class.php +++ b/modules/restful_token_auth/plugins/authentication/RestfulAuthenticationToken.class.php @@ -17,7 +17,7 @@ class RestfulAuthenticationToken extends \RestfulAuthenticationBase { * @return string * The token from the request or FALSE if token isn't exists. */ - protected function extractTokenFromRequest(array $request = array(), $param_name) { + protected function extractTokenFromRequest(array $request, $param_name) { $key_name = !empty($param_name) ? $param_name : 'access_token'; $dashed_key_name = str_replace('_', '-', $key_name); diff --git a/plugins/rate_limit/RestfulRateLimitManager.php b/plugins/rate_limit/RestfulRateLimitManager.php index 5d7f88ea..9c5e50ac 100644 --- a/plugins/rate_limit/RestfulRateLimitManager.php +++ b/plugins/rate_limit/RestfulRateLimitManager.php @@ -21,6 +21,13 @@ class RestfulRateLimitManager extends \RestfulPluginBase { */ protected $resource; + /** + * @var array + * + * The plugin info. + */ + protected $pluginInfo; + /** * Set the account. *