@@ -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) |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | /** |
31 | 31 | * {@inheritdoc} |
32 | 32 | */ |
33 | - public function createResponse(array $data, ResponseInterface &$response): OAuth2ResponseInterface |
|
33 | + public function createResponse(array $data, ResponseInterface & $response): OAuth2ResponseInterface |
|
34 | 34 | { |
35 | 35 | return new OAuth2Error(403, $data, $response); |
36 | 36 | } |
@@ -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) |
@@ -29,5 +29,5 @@ discard block |
||
29 | 29 | * |
30 | 30 | * @return OAuth2ResponseInterface |
31 | 31 | */ |
32 | - public function createResponse(array $data, ResponseInterface &$response): OAuth2ResponseInterface; |
|
32 | + public function createResponse(array $data, ResponseInterface & $response): OAuth2ResponseInterface; |
|
33 | 33 | } |
@@ -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) |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @param array $data |
28 | 28 | * @param \Exception|null $previous |
29 | 29 | */ |
30 | - public function __construct(int $code, array $data, ?\Exception $previous = null) |
|
30 | + public function __construct(int $code, array $data, ? \Exception $previous = null) |
|
31 | 31 | { |
32 | 32 | $this->data = $data; |
33 | 33 | parent::__construct('', $code, $previous); |
@@ -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) |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @return null|ResourceServerId |
49 | 49 | */ |
50 | - public function findResourceServerInformationInTheRequest(ServerRequestInterface $request, ?TokenIntrospectionEndpointAuthMethodInterface &$authenticationMethod, &$resourceServerCredentials = null): ?ResourceServerId |
|
50 | + public function findResourceServerInformationInTheRequest(ServerRequestInterface $request, ? TokenIntrospectionEndpointAuthMethodInterface & $authenticationMethod, &$resourceServerCredentials = null) : ? ResourceServerId |
|
51 | 51 | { |
52 | 52 | $resourceServerId = null; |
53 | 53 | $resourceServerCredentials = null; |
@@ -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) |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * |
28 | 28 | * @return null|ResourceServerId Return the Resource Server public ID if found else null. If credentials have are needed to authenticate the Resource Server, they are set to the variable $resourceServerCredentials |
29 | 29 | */ |
30 | - public function findResourceServerId(ServerRequestInterface $request, &$resourceServerCredentials = null): ?ResourceServerId; |
|
30 | + public function findResourceServerId(ServerRequestInterface $request, &$resourceServerCredentials = null): ? ResourceServerId; |
|
31 | 31 | |
32 | 32 | /** |
33 | 33 | * This method verifies the Resource Server credentials in the 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) |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * |
35 | 35 | * @return null|ClientId Return the client public ID if found else null. If credentials have are needed to authenticate the client, they are set to the variable $clientCredentials |
36 | 36 | */ |
37 | - public function findClientId(ServerRequestInterface $request, &$clientCredentials = null): ?ClientId; |
|
37 | + public function findClientId(ServerRequestInterface $request, &$clientCredentials = null): ? ClientId; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * @param DataBag $command_parameters |
@@ -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) |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | /** |
106 | 106 | * {@inheritdoc} |
107 | 107 | */ |
108 | - public function findClientId(ServerRequestInterface $request, &$clientCredentials = null): ?ClientId |
|
108 | + public function findClientId(ServerRequestInterface $request, &$clientCredentials = null): ? ClientId |
|
109 | 109 | { |
110 | 110 | $parameters = $request->getParsedBody() ?? []; |
111 | 111 | if (!array_key_exists('client_assertion_type', $parameters)) { |
@@ -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) |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | /** |
45 | 45 | * {@inheritdoc} |
46 | 46 | */ |
47 | - public function findClientId(ServerRequestInterface $request, &$clientCredentials = null): ?ClientId |
|
47 | + public function findClientId(ServerRequestInterface $request, &$clientCredentials = null): ? ClientId |
|
48 | 48 | { |
49 | 49 | $parameters = $request->getParsedBody() ?? []; |
50 | 50 | if (array_key_exists('client_id', $parameters) && array_key_exists('client_secret', $parameters)) { |
@@ -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) |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * |
97 | 97 | * @return null|ClientId |
98 | 98 | */ |
99 | - public function findClientInformationInTheRequest(ServerRequestInterface $request, TokenEndpointAuthMethodInterface &$authenticationMethod = null, &$clientCredentials = null) |
|
99 | + public function findClientInformationInTheRequest(ServerRequestInterface $request, TokenEndpointAuthMethodInterface & $authenticationMethod = null, &$clientCredentials = null) |
|
100 | 100 | { |
101 | 101 | $clientId = null; |
102 | 102 | $clientCredentials = null; |