mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Change else if to elseif
This commit is contained in:
@@ -312,7 +312,7 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
|
|||||||
|
|
||||||
$authorizationRequest->setCodeChallenge($codeChallenge);
|
$authorizationRequest->setCodeChallenge($codeChallenge);
|
||||||
$authorizationRequest->setCodeChallengeMethod($codeChallengeMethod);
|
$authorizationRequest->setCodeChallengeMethod($codeChallengeMethod);
|
||||||
} else if ($this->requireCodeChallengeForPublicClients && !$client->isConfidential()) {
|
} elseif ($this->requireCodeChallengeForPublicClients && !$client->isConfidential()) {
|
||||||
throw OAuthServerException::invalidRequest('code_challenge', 'Code challenge must be provided for public clients');
|
throw OAuthServerException::invalidRequest('code_challenge', 'Code challenge must be provided for public clients');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user