mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 21:19:46 +05:30
Code readability
This commit is contained in:
parent
95a2308ff6
commit
8e9b12fefd
@ -111,7 +111,7 @@ class Server extends AbstractServer
|
|||||||
// Run the requested grant type
|
// Run the requested grant type
|
||||||
$grantType = $request->request->get('grant_type', null);
|
$grantType = $request->request->get('grant_type', null);
|
||||||
|
|
||||||
if ($grantType === null || !isset($this->enabledGrantTypes[$grantType])) {
|
if ($grantType === null || isset($this->enabledGrantTypes[$grantType]) === false) {
|
||||||
throw new Exception\InvalidGrantException($grantType);
|
throw new Exception\InvalidGrantException($grantType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user