Completed
Push — master ( d9a404...9e6750 )
by Alexandre
02:12
created
src/Old/Endpoint/Server/Authorization.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -238,8 +238,7 @@
 block discarded – undo
238 238
 
239 239
         if($isImplicitResponseType) {
240 240
             $redirectUri = $redirectUri->withFragment(http_build_query($params));
241
-        }
242
-        else {
241
+        } else {
243 242
             foreach ($params as $key => $value) {
244 243
                 $redirectUri = Uri::withQueryValue($redirectUri, $key, $value);
245 244
             }
Please login to merge, or discard this patch.
src/Old/Endpoint/Server/Token.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,8 +166,7 @@
 block discarded – undo
166 166
 
167 167
         try {
168 168
             $redirectUri = $grantType->grant($request, $client);
169
-        }
170
-        catch(InvalidGrantType $e) {
169
+        } catch(InvalidGrantType $e) {
171 170
             return new ErrorResponse('invalid_grant', $e->getErrorDescription(), $e->getErrorUri());
172 171
         }
173 172
 
Please login to merge, or discard this patch.
src/OAuth2/Flows/AuthorizationCodeFlow.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     function handle(array $requestData): array
21 21
     {
22
-       return ['code' => '123'];
22
+        return ['code' => '123'];
23 23
     }
24 24
 
25 25
     function getDefaultResponseMode(): string
Please login to merge, or discard this patch.
src/OAuth2/OpenID/Endpoints/AuthorizationEndpoint.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,8 +121,7 @@
 block discarded – undo
121 121
              * specified in the Authorization Request using the application/x-www-form-urlencoded format,
122 122
              * unless a different Response Mode was specified.
123 123
              */
124
-        }
125
-        catch (OAuthException $e) {
124
+        } catch (OAuthException $e) {
126 125
             /**
127 126
              * If the Authorization Server encounters any error, it MUST return an error response, per Section 3.1.2.6.
128 127
              */
Please login to merge, or discard this patch.
src/OAuth2/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/OAuth2/ResponseModes/QueryResponseMode.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
 {
17 17
     function buildResponse(array $requestData, array $responseData): ResponseInterface
18 18
     {
19
-       return new Response();
19
+        return new Response();
20 20
     }
21 21
 }
22 22
\ No newline at end of file
Please login to merge, or discard this patch.
src/OAuth2OLD/ResponseTypes/CodeResponseType.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      * @throws OAuthException
45 45
      */
46 46
     public function handle(ServerRequestInterface $request, ResourceOwnerInterface $resourceOwner,
47
-                           RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array
47
+                            RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array
48 48
     {
49 49
         if (is_array($client->getSupportedGrantTypes()) && !in_array('authorization_code', $client->getSupportedGrantTypes())) {
50 50
             throw new OAuthException('unauthorized_client',
Please login to merge, or discard this patch.
src/OAuth2OLD/ResponseTypes/ResponseTypeInterface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      * @return array
29 29
      */
30 30
     public function handle(ServerRequestInterface $request, ResourceOwnerInterface $resourceOwner,
31
-                           RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array;
31
+                            RegisteredClient $client, ?array $scope = null, ?array $extendedResponseTypes = null): array;
32 32
 
33 33
     public function getDefaultResponseMode(): string;
34 34
     public function isQueryResponseModeSupported(): bool;
Please login to merge, or discard this patch.
src/OAuth2OLD/Endpoints/TokenEndpoint.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,7 @@
 block discarded – undo
96 96
 
97 97
         try {
98 98
             return $grantType->grant($request, $client);
99
-        }
100
-        catch (OAuthException $e) {
99
+        } catch (OAuthException $e) {
101 100
             return new ErrorResponse($e->getError(),
102 101
                 $e->getErrorDescription(),
103 102
                 $e->getErrorUri());
Please login to merge, or discard this patch.