@@ -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 | } |
@@ -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) |
@@ -54,13 +54,13 @@ discard block |
||
54 | 54 | private function callableForNextExtension($index) |
55 | 55 | { |
56 | 56 | if (!array_key_exists($index, $this->extensions)) { |
57 | - return function (Client $client, ResourceOwnerInterface $resourceOwner, AccessToken $accessToken): array { |
|
57 | + return function(Client $client, ResourceOwnerInterface $resourceOwner, AccessToken $accessToken): array { |
|
58 | 58 | return $accessToken->getResponseData(); |
59 | 59 | }; |
60 | 60 | } |
61 | 61 | $extension = $this->extensions[$index]; |
62 | 62 | |
63 | - return function (Client $client, ResourceOwnerInterface $resourceOwner, AccessToken $accessToken) use ($extension, $index): array { |
|
63 | + return function(Client $client, ResourceOwnerInterface $resourceOwner, AccessToken $accessToken) use ($extension, $index): array { |
|
64 | 64 | return $extension->process($client, $resourceOwner, $accessToken, $this->callableForNextExtension($index + 1)); |
65 | 65 | }; |
66 | 66 | } |
@@ -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 @@ |
||
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 @@ |
||
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 @@ |
||
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) |
@@ -56,13 +56,13 @@ discard block |
||
56 | 56 | private function callableForNextRule(int $index): \Closure |
57 | 57 | { |
58 | 58 | if (!isset($this->processors[$index])) { |
59 | - return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData { |
|
59 | + return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData { |
|
60 | 60 | return $grantType->grant($request, $grantTypeData); |
61 | 61 | }; |
62 | 62 | } |
63 | 63 | $processor = $this->processors[$index]; |
64 | 64 | |
65 | - return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData { |
|
65 | + return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData { |
|
66 | 66 | return $processor($request, $grantTypeData, $grantType, $this->callableForNextRule($index + 1)); |
67 | 67 | }; |
68 | 68 | } |
@@ -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 @@ |
||
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) |