From 07ebe43b91fc2a5758bf892f8d5aa6c412844989 Mon Sep 17 00:00:00 2001 From: sephster Date: Sun, 2 Sep 2018 16:17:34 +0100 Subject: [PATCH] Change else if to elseif --- src/Grant/AuthCodeGrant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Grant/AuthCodeGrant.php b/src/Grant/AuthCodeGrant.php index 3d692758..5ae3990a 100644 --- a/src/Grant/AuthCodeGrant.php +++ b/src/Grant/AuthCodeGrant.php @@ -312,7 +312,7 @@ class AuthCodeGrant extends AbstractAuthorizeGrant $authorizationRequest->setCodeChallenge($codeChallenge); $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'); }