Code readability

This commit is contained in:
Alex Bilbie 2015-04-06 08:23:35 +01:00
parent 95a2308ff6
commit 8e9b12fefd

View File

@ -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);
}