Completed
Push — master ( 49cbbd...fa99dd )
by Alexandre
06:00
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/ResponseTypes/ResponseTypeInterface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      * @return array
32 32
      */
33 33
     public function handle(ServerRequestInterface $request, ResourceOwnerInterface $resourceOwner,
34
-                           RegisteredClient $client, ?array $scope = null): array;
34
+                            RegisteredClient $client, ?array $scope = null): array;
35 35
 
36 36
     public function getDefaultResponseMode(): string;
37 37
 
Please login to merge, or discard this patch.
src/OAuth2/OpenID/ResponseTypes/CodeResponseType.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      * @return array
41 41
      */
42 42
     public function handle(ServerRequestInterface $request, ResourceOwnerInterface $resourceOwner,
43
-                           RegisteredClient $client, ?array $scope = null): array
43
+                            RegisteredClient $client, ?array $scope = null): array
44 44
     {
45 45
         // TODO: Implement handle() method.
46 46
     }
Please login to merge, or discard this patch.
src/OAuth2/OpenID/ResponseTypes/IdTokenResponseType.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      * @return array
32 32
      */
33 33
     public function handle(ServerRequestInterface $request, ResourceOwnerInterface $resourceOwner,
34
-                           RegisteredClient $client, ?array $scope = null): array
34
+                            RegisteredClient $client, ?array $scope = null): array
35 35
     {
36 36
 
37 37
     }
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
@@ -75,8 +75,7 @@
 block discarded – undo
75 75
 
76 76
         if(empty($responseTypes)) {
77 77
             throw new OAuthException('invalid_request', 'Invalid response_type parameter');
78
-        }
79
-        else if (count($responseTypes) == 1) {
78
+        } else if (count($responseTypes) == 1) {
80 79
             $defaultResponseMode = $responseTypes[0]->getDefaultResponseMode();
81 80
         } else {
82 81
             $defaultResponseMode = ResponseTypeInterface::RESPONSE_MODE_FRAGMENT;
Please login to merge, or discard this patch.
src/OAuth2/Endpoints/AuthorizationEndpoint.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
      * @throws \Exception
107 107
      */
108 108
     public function verify(ServerRequestInterface $request, &$client = null, &$responseTypes = null,
109
-                           &$redirectUri = null, &$scope = null, &$responseMode = null, &$isInsecure = null): ?Response
109
+                            &$redirectUri = null, &$scope = null, &$responseMode = null, &$isInsecure = null): ?Response
110 110
     {
111 111
         $authorizationRequest = AuthorizationRequest::createFromServerRequest($request);
112 112
 
Please login to merge, or discard this patch.
src/OAuth2/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.
src/OAuth2/GrantTypes/ResourceOwnerPasswordCredentialsGrantType.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,8 +85,7 @@
 block discarded – undo
85 85
 
86 86
         try {
87 87
             $resourceOwner = $this->resourceOwnerProvider->authenticate($username, $password);
88
-        }
89
-        catch (\Exception $e) {
88
+        } catch (\Exception $e) {
90 89
             throw new OAuthException('invalid_grant', $e->getMessage(),
91 90
                 'https://tools.ietf.org/html/rfc6749#section-4.3');
92 91
         }
Please login to merge, or discard this patch.