Passed
Push — master ( fd01cd...a8d522 )
by Alexandre
02:26
created
src/OAuth2/Extensions/PKCE/Flows/AuthorizationCodeFlow.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
             }
58 58
         } else {
59 59
             $codeChallengeMethod = empty($requestData['code_challenge_method']) ? 'plain' : $requestData['code_challenge_method'];
60
-            if(!in_array($codeChallengeMethod, ['plain', 'S256'])) {
60
+            if (!in_array($codeChallengeMethod, ['plain', 'S256'])) {
61 61
                 throw new OAuthException('invalid_request',
62 62
                     'The request includes the invalid parameter code_challenge_method. Supported : plain, S256',
63 63
                     'https://tools.ietf.org/html/rfc7636#section-4');
Please login to merge, or discard this patch.
src/OAuth2/Extensions/PKCE/Credentials/AuthorizationCode.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
                                 int $expiresAt, ?string $requestedScope = null, ?string $redirectUri = null,
25 25
                                 ?string $codeChallenge = null, ?string $codeChallengeMethod = null)
26 26
     {
27
-       parent::__construct($code, $scope, $clientIdentifier, $resourceOwnerIdentifier, $expiresAt, $requestedScope, $redirectUri);
27
+        parent::__construct($code, $scope, $clientIdentifier, $resourceOwnerIdentifier, $expiresAt, $requestedScope, $redirectUri);
28 28
         $this->codeChallenge = $codeChallenge;
29 29
         $this->codeChallengeMethod = $codeChallengeMethod;
30 30
     }
Please login to merge, or discard this patch.