diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-06-14 16:42:49 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-06-15 16:39:28 +0200 |
commit | d7b9e33b94ecaa7f1a00630de9149b75a5985268 (patch) | |
tree | 4304162f0ba6f244811a761f0522dac174f17367 /phpBB/phpbb/auth/provider/oauth/oauth.php | |
parent | 3a96c5b753cbbde459f9835e952b2cb75008a9fc (diff) | |
download | forums-d7b9e33b94ecaa7f1a00630de9149b75a5985268.tar forums-d7b9e33b94ecaa7f1a00630de9149b75a5985268.tar.gz forums-d7b9e33b94ecaa7f1a00630de9149b75a5985268.tar.bz2 forums-d7b9e33b94ecaa7f1a00630de9149b75a5985268.tar.xz forums-d7b9e33b94ecaa7f1a00630de9149b75a5985268.zip |
[ticket/12715] Cleanup comments in \phpbb\auth\provider\*
PHPBB3-12715
Diffstat (limited to 'phpBB/phpbb/auth/provider/oauth/oauth.php')
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/oauth.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php index 07430bb42a..7b71e3c844 100644 --- a/phpBB/phpbb/auth/provider/oauth/oauth.php +++ b/phpBB/phpbb/auth/provider/oauth/oauth.php @@ -14,7 +14,6 @@ namespace phpbb\auth\provider\oauth; use OAuth\Common\Consumer\Credentials; -use OAuth\Common\Http\Uri\Uri; /** * OAuth authentication provider for phpBB3 @@ -224,7 +223,7 @@ class oauth extends \phpbb\auth\provider\base if (!$row) { - throw new Exception('AUTH_PROVIDER_OAUTH_ERROR_INVALID_ENTRY'); + throw new \Exception('AUTH_PROVIDER_OAUTH_ERROR_INVALID_ENTRY'); } // Update token storage to store the user_id @@ -278,9 +277,10 @@ class oauth extends \phpbb\auth\provider\base * @param array $service_credentials {@see \phpbb\auth\provider\oauth\oauth::get_service_credentials} * @param string $query The query string of the * current_uri used in redirection - * @param array $scope The scope of the request against + * @param array $scopes The scope of the request against * the api. * @return \OAuth\Common\Service\ServiceInterface + * @throws \Exception */ protected function get_service($service_name, \phpbb\auth\provider\oauth\token_storage $storage, array $service_credentials, $query, array $scopes = array()) { @@ -298,7 +298,7 @@ class oauth extends \phpbb\auth\provider\base if (!$service) { - throw new Exception('AUTH_PROVIDER_OAUTH_ERROR_SERVICE_NOT_CREATED'); + throw new \Exception('AUTH_PROVIDER_OAUTH_ERROR_SERVICE_NOT_CREATED'); } return $service; @@ -617,7 +617,5 @@ class oauth extends \phpbb\auth\provider\base $service_name = 'auth.provider.oauth.service.' . strtolower($link_data['oauth_service']); $storage = new \phpbb\auth\provider\oauth\token_storage($this->db, $this->user, $this->auth_provider_oauth_token_storage_table); $storage->clearToken($service_name); - - return; } } |