Change else if to elseif

This commit is contained in:
sephster 2018-09-02 16:17:34 +01:00
parent 5d3d9d95be
commit 07ebe43b91
No known key found for this signature in database
GPG Key ID: 077754CA23023F4F

View File

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