mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +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
|
||||
$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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user