@@ -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('redirect_uris')) { |
| 28 | 28 | Assertion::isArray($commandParameters->get('redirect_uris'), 'The parameter \'redirect_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) |
@@ -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 | if ($commandParameters->has('subject_type')) { |
| 44 | 44 | Assertion::string($commandParameters->get('subject_type'), 'Invalid parameter \'subject_type\'. The value 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) |
@@ -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('grant_types')) { |
| 52 | 52 | $commandParameters = $commandParameters->with('grant_types', []); |
@@ -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) |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | /** |
| 24 | 24 | * {@inheritdoc} |
| 25 | 25 | */ |
| 26 | - public function handle(DataBag $commandParameters, DataBag $validatedParameters, ?UserAccountId $userAccountId, callable $next): DataBag |
|
| 26 | + public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag |
|
| 27 | 27 | { |
| 28 | 28 | $validatedParameters = $next($commandParameters, $validatedParameters, $userAccountId); |
| 29 | 29 | Assertion::true($validatedParameters->has('client_id')); |
@@ -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 | if ($commandParameters->has('id_token_encrypted_response_alg') && $commandParameters->has('id_token_encrypted_response_enc')) { |
| 44 | 44 | Assertion::string($commandParameters['id_token_encrypted_response_alg'], 'Invalid parameter \'id_token_encrypted_response_alg\'. The value 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) |
@@ -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 | } |