mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-11-26 01:03:19 +05:30
PHPCS fixes
This commit is contained in:
1 parent
5c8ed58c67
commit
b82551c97d
10 files changed
+42
-16
No files matched your search
@@ -174,7 +174,7 @@ class AuthorizationServer extends AbstractServer
|
||||
|
||||
$this->grantTypes[$identifier] = $grantType;
|
||||
|
||||
if ( ! is_null($grantType->getResponseType())) {
|
||||
if (!is_null($grantType->getResponseType())) {
|
||||
$this->responseTypes[] = $grantType->getResponseType();
|
||||
}
|
||||
|
||||
@@ -316,7 +316,7 @@ class AuthorizationServer extends AbstractServer
|
||||
}
|
||||
|
||||
// Ensure grant type is one that is recognised and is enabled
|
||||
if ( ! in_array($grantType, array_keys($this->grantTypes))) {
|
||||
if (!in_array($grantType, array_keys($this->grantTypes))) {
|
||||
throw new Exception\UnsupportedGrantTypeException($grantType);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user