@@ -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); |
@@ -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) |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | /** |
176 | 176 | * @return null|TokenTypeInterface |
177 | 177 | */ |
178 | - public function getTokenType(): ?TokenTypeInterface |
|
178 | + public function getTokenType(): ? TokenTypeInterface |
|
179 | 179 | { |
180 | 180 | return $this->tokenType; |
181 | 181 | } |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * @return null|ResponseModeInterface |
220 | 220 | */ |
221 | - public function getResponseMode(): ?ResponseModeInterface |
|
221 | + public function getResponseMode(): ? ResponseModeInterface |
|
222 | 222 | { |
223 | 223 | return $this->responseMode; |
224 | 224 | } |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | /** |
240 | 240 | * @return null|string |
241 | 241 | */ |
242 | - public function getRedirectUri(): ?string |
|
242 | + public function getRedirectUri(): ? string |
|
243 | 243 | { |
244 | 244 | return $this->redirectUri; |
245 | 245 | } |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | /** |
263 | 263 | * @return null|UserAccountInterface |
264 | 264 | */ |
265 | - public function getUserAccount(): ?UserAccountInterface |
|
265 | + public function getUserAccount(): ? UserAccountInterface |
|
266 | 266 | { |
267 | 267 | return $this->userAccount; |
268 | 268 | } |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | /** |
337 | 337 | * @return bool|null |
338 | 338 | */ |
339 | - public function isUserAccountFullyAuthenticated(): ?bool |
|
339 | + public function isUserAccountFullyAuthenticated(): ? bool |
|
340 | 340 | { |
341 | 341 | return $this->userAccountFullyAuthenticated; |
342 | 342 | } |
@@ -445,7 +445,7 @@ discard block |
||
445 | 445 | /** |
446 | 446 | * @return bool|null |
447 | 447 | */ |
448 | - public function isAuthorized(): ?bool |
|
448 | + public function isAuthorized(): ? bool |
|
449 | 449 | { |
450 | 450 | return $this->authorized; |
451 | 451 | } |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | /** |
512 | 512 | * @return null|ResourceServerInterface |
513 | 513 | */ |
514 | - public function getResourceServer(): ?ResourceServerInterface |
|
514 | + public function getResourceServer(): ? ResourceServerInterface |
|
515 | 515 | { |
516 | 516 | return $this->resourceServer; |
517 | 517 | } |
@@ -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) |
@@ -52,13 +52,13 @@ discard block |
||
52 | 52 | private function callableForNextExtension($index) |
53 | 53 | { |
54 | 54 | if (!array_key_exists($index, $this->parameterCheckers)) { |
55 | - return function (Authorization $authorization): Authorization { |
|
55 | + return function(Authorization $authorization): Authorization { |
|
56 | 56 | return $authorization; |
57 | 57 | }; |
58 | 58 | } |
59 | 59 | $parameterChecker = $this->parameterCheckers[$index]; |
60 | 60 | |
61 | - return function (Authorization $authorization) use ($parameterChecker, $index): Authorization { |
|
61 | + return function(Authorization $authorization) use ($parameterChecker, $index): Authorization { |
|
62 | 62 | return $parameterChecker->process($authorization, $this->callableForNextExtension($index + 1)); |
63 | 63 | }; |
64 | 64 | } |
@@ -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 | * @param string $message |
35 | 35 | * @param null|string $description |
36 | 36 | */ |
37 | - public function __construct(Authorization $authorization, string $message, ?string $description) |
|
37 | + public function __construct(Authorization $authorization, string $message, ? string $description) |
|
38 | 38 | { |
39 | 39 | parent::__construct($message); |
40 | 40 | $this->authorization = $authorization; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * @return null|string |
54 | 54 | */ |
55 | - public function getDescription(): ?string |
|
55 | + public function getDescription(): ? string |
|
56 | 56 | { |
57 | 57 | return $this->description; |
58 | 58 | } |
@@ -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) |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @param Client|null $client |
62 | 62 | */ |
63 | - private function __construct(?Client $client) |
|
63 | + private function __construct(? Client $client) |
|
64 | 64 | { |
65 | 65 | $this->parameters = new DataBag(); |
66 | 66 | $this->metadatas = new DataBag(); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @return GrantTypeData |
74 | 74 | */ |
75 | - public static function create(?Client $client): GrantTypeData |
|
75 | + public static function create(? Client $client) : GrantTypeData |
|
76 | 76 | { |
77 | 77 | return new self($client); |
78 | 78 | } |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | /** |
182 | 182 | * @return Client|null |
183 | 183 | */ |
184 | - public function getClient(): ?Client |
|
184 | + public function getClient(): ? Client |
|
185 | 185 | { |
186 | 186 | return $this->client; |
187 | 187 | } |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | /** |
311 | 311 | * @return string[]|null |
312 | 312 | */ |
313 | - public function getAvailableScopes(): ?array |
|
313 | + public function getAvailableScopes(): ? array |
|
314 | 314 | { |
315 | 315 | return $this->availableScopes; |
316 | 316 | } |