From c2ac787f09afb938e372ff922f9e830ebfd49ef7 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 25 Jul 2012 16:15:14 +0100 Subject: [PATCH] Fixed placement of grant comments to stop PHPCS bitching --- src/Oauth2/Authentication/Server.php | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/src/Oauth2/Authentication/Server.php b/src/Oauth2/Authentication/Server.php index 6125fb02..81b78206 100644 --- a/src/Oauth2/Authentication/Server.php +++ b/src/Oauth2/Authentication/Server.php @@ -374,22 +374,15 @@ maintenance of the server.', switch ($params['grant_type']) { - // Authorization code grant - case 'authorization_code': + + case 'authorization_code': // Authorization code grant return $this->completeAuthCodeGrant($authParams, $params); break; - // Refresh token - case 'refresh_token': - - // Resource owner password credentials grant - case 'password': - - // Client credentials grant - case 'client_credentials': - - // Unsupported - default: + case 'refresh_token': // Refresh token + case 'password': // Resource owner password credentials grant + case 'client_credentials': // Client credentials grant + default: // Unsupported throw new OAuthServerException($this->errors['server_error'] . 'Tried to process an unsuppported grant type.', 5);