@@ -19,7 +19,7 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * {@inheritdoc} |
| 21 | 21 | */ |
| 22 | - public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface &$request, array &$post_request) |
|
| 22 | + public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface & $request, array &$post_request) |
|
| 23 | 23 | { |
| 24 | 24 | } |
| 25 | 25 | } |
@@ -21,5 +21,5 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @return mixed |
| 23 | 23 | */ |
| 24 | - public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface &$request, array &$post_request); |
|
| 24 | + public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface & $request, array &$post_request); |
|
| 25 | 25 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * {@inheritdoc} |
| 22 | 22 | */ |
| 23 | - public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface &$request, array &$post_request) |
|
| 23 | + public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface & $request, array &$post_request) |
|
| 24 | 24 | { |
| 25 | 25 | Assertion::keyExists($client->getConfiguration(), 'client_secret'); |
| 26 | 26 | $this->checkClientTokenEndpointAuthenticationMethod($client); |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * {@inheritdoc} |
| 21 | 21 | */ |
| 22 | - public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface &$request, array &$post_request) |
|
| 22 | + public function prepareRequest(ServerMetadata $server_metadata, OAuth2ClientInterface $client, RequestInterface & $request, array &$post_request) |
|
| 23 | 23 | { |
| 24 | 24 | $this->checkClientTokenEndpointAuthenticationMethod($client); |
| 25 | 25 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * The MIT License (MIT) |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * The MIT License (MIT) |
@@ -64,13 +64,13 @@ discard block |
||
| 64 | 64 | private function callableForNextRule(int $index): \Closure |
| 65 | 65 | { |
| 66 | 66 | if (!isset($this->responseTypes[$index])) { |
| 67 | - return function (Authorization $authorization) { |
|
| 67 | + return function(Authorization $authorization) { |
|
| 68 | 68 | return $authorization; |
| 69 | 69 | }; |
| 70 | 70 | } |
| 71 | 71 | $responseType = $this->responseTypes[$index]; |
| 72 | 72 | |
| 73 | - return function (Authorization $authorization) use ($responseType, $index): Authorization { |
|
| 73 | + return function(Authorization $authorization) use ($responseType, $index): Authorization { |
|
| 74 | 74 | return $responseType->process($authorization, $this->callableForNextRule($index + 1)); |
| 75 | 75 | }; |
| 76 | 76 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * The MIT License (MIT) |
@@ -50,13 +50,13 @@ discard block |
||
| 50 | 50 | private function callableForNextRule(int $index): \Closure |
| 51 | 51 | { |
| 52 | 52 | if (!isset($this->extensions[$index])) { |
| 53 | - return function (ServerRequestInterface $request, Authorization $authorization): Authorization { |
|
| 53 | + return function(ServerRequestInterface $request, Authorization $authorization): Authorization { |
|
| 54 | 54 | return $authorization; |
| 55 | 55 | }; |
| 56 | 56 | } |
| 57 | 57 | $extension = $this->extensions[$index]; |
| 58 | 58 | |
| 59 | - return function (ServerRequestInterface $request, Authorization $authorization) use ($extension, $index): Authorization { |
|
| 59 | + return function(ServerRequestInterface $request, Authorization $authorization) use ($extension, $index): Authorization { |
|
| 60 | 60 | return $extension->find($request, $authorization, $this->callableForNextRule($index + 1)); |
| 61 | 61 | }; |
| 62 | 62 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * The MIT License (MIT) |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * |
| 39 | 39 | * @return string |
| 40 | 40 | */ |
| 41 | - abstract protected function getBrowserState(ServerRequestInterface $request, Authorization &$authorization): string; |
|
| 41 | + abstract protected function getBrowserState(ServerRequestInterface $request, Authorization & $authorization): string; |
|
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * @param ServerRequestInterface $request |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * The MIT License (MIT) |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | * |
| 326 | 326 | * @return JWSInterface |
| 327 | 327 | */ |
| 328 | - private function loadRequest(array $params, string $request, Client &$client = null): JWSInterface |
|
| 328 | + private function loadRequest(array $params, string $request, Client & $client = null): JWSInterface |
|
| 329 | 329 | { |
| 330 | 330 | try { |
| 331 | 331 | $jwt = $this->jwtLoader->load($request, $this->keyEncryptionKeySet, $this->requireEncryption); |