@@ -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) |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * |
| 71 | 71 | * @return DataBag |
| 72 | 72 | */ |
| 73 | - public function handle(DataBag $commandParameters, ?UserAccountId $userAccountId): DataBag |
|
| 73 | + public function handle(DataBag $commandParameters, ? UserAccountId $userAccountId) : DataBag |
|
| 74 | 74 | { |
| 75 | 75 | return call_user_func($this->callableForNextRule(0), $commandParameters, new DataBag(), $userAccountId); |
| 76 | 76 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | private function callableForNextRule(int $index): \Closure |
| 84 | 84 | { |
| 85 | 85 | if (!isset($this->rules[$index])) { |
| 86 | - return function (DataBag $commandParameters, DataBag $validatedParameters): DataBag { |
|
| 86 | + return function(DataBag $commandParameters, DataBag $validatedParameters): DataBag { |
|
| 87 | 87 | $clientId = $this->clientIdRule->generateUniqueClientId(); |
| 88 | 88 | $validatedParameters = $validatedParameters->with('client_id', $clientId); |
| 89 | 89 | $validatedParameters = $validatedParameters->with('client_id_issued_at', time()); |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | } |
| 94 | 94 | $rule = $this->rules[$index]; |
| 95 | 95 | |
| 96 | - return function (DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId) use ($rule, $index): DataBag { |
|
| 96 | + return function(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId) use ($rule, $index) : DataBag { |
|
| 97 | 97 | return $rule->handle($commandParameters, $validatedParameters, $userAccountId, $this->callableForNextRule($index + 1)); |
| 98 | 98 | }; |
| 99 | 99 | } |
@@ -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 |