mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-03 18:51:53 +05:30
Fixed placement of grant comments to stop PHPCS bitching
This commit is contained in:
parent
10898ed8d4
commit
c2ac787f09
@ -374,22 +374,15 @@ maintenance of the server.',
|
|||||||
|
|
||||||
switch ($params['grant_type'])
|
switch ($params['grant_type'])
|
||||||
{
|
{
|
||||||
// Authorization code grant
|
|
||||||
case 'authorization_code':
|
case 'authorization_code': // Authorization code grant
|
||||||
return $this->completeAuthCodeGrant($authParams, $params);
|
return $this->completeAuthCodeGrant($authParams, $params);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Refresh token
|
case 'refresh_token': // Refresh token
|
||||||
case 'refresh_token':
|
case 'password': // Resource owner password credentials grant
|
||||||
|
case 'client_credentials': // Client credentials grant
|
||||||
// Resource owner password credentials grant
|
default: // Unsupported
|
||||||
case 'password':
|
|
||||||
|
|
||||||
// Client credentials grant
|
|
||||||
case 'client_credentials':
|
|
||||||
|
|
||||||
// Unsupported
|
|
||||||
default:
|
|
||||||
throw new OAuthServerException($this->errors['server_error'] .
|
throw new OAuthServerException($this->errors['server_error'] .
|
||||||
'Tried to process an unsuppported grant type.',
|
'Tried to process an unsuppported grant type.',
|
||||||
5);
|
5);
|
||||||
|
Loading…
Reference in New Issue
Block a user