Completed
Push — master ( fbc010...e2ab3d )
by Alexandre
01:52
created
src/Extensions/OpenID/Endpoints/AuthorizationEndpoint.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,8 +102,7 @@
 block discarded – undo
102 102
             if($this->idTokenHint['sub'] !== $this->resourceOwner->getIdentifier()) {
103 103
                 if($this->prompt == self::PROMPT_NONE) {
104 104
                     throw new OAuthException('invalid_request');
105
-                }
106
-                else {
105
+                } else {
107 106
                     throw new OAuthException('login_required');
108 107
                 }
109 108
             }
Please login to merge, or discard this patch.
src/Extensions/OpenID/IdTokenManager.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
     }
52 52
 
53 53
     public function issueIdToken(RegisteredClient $client,
54
-                                 string $resourceOwnerIdentifier,
55
-                                 array $additionalClaims = []): string
54
+                                    string $resourceOwnerIdentifier,
55
+                                    array $additionalClaims = []): string
56 56
     {
57 57
         $metadata = $client->getMetadata();
58 58
 
Please login to merge, or discard this patch.
src/Extensions/OpenID/IdToken.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     function getClaims() : array
27 27
     {
28
-       return $this->claims;
28
+        return $this->claims;
29 29
     }
30 30
 
31 31
     /**
Please login to merge, or discard this patch.
src/Endpoints/AuthorizationEndpoint.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -327,10 +327,11 @@
 block discarded – undo
327 327
         $redirectUris = $this->getClient()->getMetadata()->getRedirectUris();
328 328
         if (empty($redirectUris)) {
329 329
             if ($this->getClient() instanceof PublicClientInterface ||
330
-                ($this->getClient() instanceof ConfidentialClientInterface && $responseType == 'token'))
331
-                throw new OAuthException('invalid_request',
330
+                ($this->getClient() instanceof ConfidentialClientInterface && $responseType == 'token')) {
331
+                            throw new OAuthException('invalid_request',
332 332
                     'Clients using flows with redirection MUST register their redirection URI values',
333 333
                     'https://tools.ietf.org/html/rfc7591#section-2.1');
334
+            }
334 335
         } else {
335 336
             if ($redirectUri) {
336 337
                 if (!in_array($redirectUri, $redirectUris)) {
Please login to merge, or discard this patch.
src/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
                                 \DateTimeInterface $expiresAt, ?array $requestedScopes = null, ?string $redirectUri = null,
25 25
                                 ?string $codeChallenge = null, ?string $codeChallengeMethod = null)
26 26
     {
27
-       parent::__construct($code, $scopes, $clientIdentifier, $resourceOwnerIdentifier, $expiresAt, $requestedScopes, $redirectUri);
27
+        parent::__construct($code, $scopes, $clientIdentifier, $resourceOwnerIdentifier, $expiresAt, $requestedScopes, $redirectUri);
28 28
         $this->codeChallenge = $codeChallenge;
29 29
         $this->codeChallengeMethod = $codeChallengeMethod;
30 30
     }
Please login to merge, or discard this patch.