@@ -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) |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * {@inheritdoc} |
38 | 38 | */ |
39 | - public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag |
|
39 | + public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag |
|
40 | 40 | { |
41 | 41 | if ($commandParameters->has('scope')) { |
42 | 42 | Assertion::regex($commandParameters->get('scope'), '/^[\x20\x23-\x5B\x5D-\x7E]+$/', 'Invalid characters found in the \'scope\' parameter.'); |
@@ -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 | * {@inheritdoc} |
40 | 40 | */ |
41 | - public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag |
|
41 | + public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag |
|
42 | 42 | { |
43 | 43 | Assertion::true($commandParameters->has('token_endpoint_auth_method'), 'The parameter \'token_endpoint_auth_method\' is missing.'); |
44 | 44 | Assertion::string($commandParameters->get('token_endpoint_auth_method'), 'The parameter \'token_endpoint_auth_method\' must be a string.'); |
@@ -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) |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * {@inheritdoc} |
24 | 24 | */ |
25 | - public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag |
|
25 | + public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag |
|
26 | 26 | { |
27 | 27 | foreach ($this->getSupportedParameters() as $parameter => $closure) { |
28 | 28 | $id = $this->getInternationalizedParameters($commandParameters, $parameter, $closure); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | private function getSupportedParameters(): array |
39 | 39 | { |
40 | 40 | return [ |
41 | - 'client_name' => function () { |
|
41 | + 'client_name' => function() { |
|
42 | 42 | }, |
43 | 43 | 'client_uri' => $this->getUriVerificationClosure(), |
44 | 44 | 'logo_uri' => $this->getUriVerificationClosure(), |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | private function getUriVerificationClosure(): \Closure |
54 | 54 | { |
55 | - return function ($k, $v) { |
|
55 | + return function($k, $v) { |
|
56 | 56 | Assertion::url($v, sprintf('The parameter with key \'%s\' is not a valid URL.', $k)); |
57 | 57 | }; |
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) |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * {@inheritdoc} |
24 | 24 | */ |
25 | - public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag |
|
25 | + public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag |
|
26 | 26 | { |
27 | 27 | if ($commandParameters->has('request_uris')) { |
28 | 28 | Assertion::isArray($commandParameters->get('request_uris'), 'The parameter \'request_uris\' must be a list of URI.'); |
@@ -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) |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * {@inheritdoc} |
48 | 48 | */ |
49 | - public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag |
|
49 | + public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag |
|
50 | 50 | { |
51 | 51 | if ($commandParameters->has('sector_identifier_uri')) { |
52 | 52 | Assertion::url($commandParameters->get('sector_identifier_uri'), sprintf('The sector identifier URI \'%s\' is not valid.', $commandParameters->get('sector_identifier_uri'))); |
@@ -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) |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * @return null|ResourceServerId |
220 | 220 | */ |
221 | - public function getResourceServerId(): ?ResourceServerId |
|
221 | + public function getResourceServerId(): ? ResourceServerId |
|
222 | 222 | { |
223 | 223 | return $this->resourceServerId; |
224 | 224 | } |
@@ -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) |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * |
66 | 66 | * @return RefreshToken |
67 | 67 | */ |
68 | - public function create(RefreshTokenId $refreshTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, \DateTimeImmutable $expiresAt, ?ResourceServerId $resourceServerId): RefreshToken |
|
68 | + public function create(RefreshTokenId $refreshTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, \DateTimeImmutable $expiresAt, ? ResourceServerId $resourceServerId) : RefreshToken |
|
69 | 69 | { |
70 | 70 | $clone = clone $this; |
71 | 71 | $clone->refreshTokenId = $refreshTokenId; |
@@ -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) |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * |
36 | 36 | * @return RefreshToken |
37 | 37 | */ |
38 | - public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ?ResourceServerId $resourceServerId, ?\DateTimeImmutable $expiresAt): RefreshToken; |
|
38 | + public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt) : RefreshToken; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * @param RefreshToken $refreshToken |
@@ -39,6 +39,7 @@ |
||
39 | 39 | |
40 | 40 | /** |
41 | 41 | * @param RefreshToken $refreshToken |
42 | + * @return void |
|
42 | 43 | */ |
43 | 44 | public function save(RefreshToken $refreshToken); |
44 | 45 |
@@ -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) |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * |
67 | 67 | * @return AccessToken |
68 | 68 | */ |
69 | - public function create(AccessTokenId $accessTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, \DateTimeImmutable $expiresAt, ?RefreshTokenId $refreshTokenId, ?ResourceServerId $resourceServerId) |
|
69 | + public function create(AccessTokenId $accessTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, \DateTimeImmutable $expiresAt, ? RefreshTokenId $refreshTokenId, ? ResourceServerId $resourceServerId) |
|
70 | 70 | { |
71 | 71 | $clone = clone $this; |
72 | 72 | $clone->accessTokenId = $accessTokenId; |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | /** |
107 | 107 | * @return null|RefreshTokenId |
108 | 108 | */ |
109 | - public function getRefreshTokenId(): ?RefreshTokenId |
|
109 | + public function getRefreshTokenId(): ? RefreshTokenId |
|
110 | 110 | { |
111 | 111 | return $this->refreshTokenId; |
112 | 112 | } |