@@ -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('default_scope')) { |
28 | 28 | Assertion::regex($commandParameters->get('default_scope'), '/^[\x20\x23-\x5B\x5D-\x7E]+$/', 'Invalid characters found in the \'default_scope\' parameter.'); |
@@ -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) |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @param ScopeRepositoryInterface $scopeRepository |
39 | 39 | * @param null|ScopePolicyManager $scopePolicyManager |
40 | 40 | */ |
41 | - public function __construct(ScopeRepositoryInterface $scopeRepository, ?ScopePolicyManager $scopePolicyManager) |
|
41 | + public function __construct(ScopeRepositoryInterface $scopeRepository, ? ScopePolicyManager $scopePolicyManager) |
|
42 | 42 | { |
43 | 43 | $this->scopeRepository = $scopeRepository; |
44 | 44 | $this->scopePolicyManager = $scopePolicyManager; |
@@ -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) |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * @param ScopeRepositoryInterface $scopeRepository |
40 | 40 | * @param ScopePolicyManager|null $scopePolicyManager |
41 | 41 | */ |
42 | - public function __construct(ScopeRepositoryInterface $scopeRepository, ?ScopePolicyManager $scopePolicyManager) |
|
42 | + public function __construct(ScopeRepositoryInterface $scopeRepository, ? ScopePolicyManager $scopePolicyManager) |
|
43 | 43 | { |
44 | 44 | $this->scopeRepository = $scopeRepository; |
45 | 45 | $this->scopePolicyManager = $scopePolicyManager; |
@@ -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) |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * @param null|ScopeRepositoryInterface $scopeRepository |
33 | 33 | * @param null|ScopePolicyManager $scopePolicyManager |
34 | 34 | */ |
35 | - public function __construct(?ScopeRepositoryInterface $scopeRepository, ?ScopePolicyManager $scopePolicyManager) |
|
35 | + public function __construct(? ScopeRepositoryInterface $scopeRepository, ? ScopePolicyManager $scopePolicyManager) |
|
36 | 36 | { |
37 | 37 | if (null !== $scopeRepository) { |
38 | 38 | $this->processors[] = new ScopeProcessor($scopeRepository, $scopePolicyManager); |
@@ -60,13 +60,13 @@ discard block |
||
60 | 60 | private function callableForNextRule(int $index): \Closure |
61 | 61 | { |
62 | 62 | if (!isset($this->processors[$index])) { |
63 | - return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData { |
|
63 | + return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData { |
|
64 | 64 | return $grantType->grant($request, $grantTypeData); |
65 | 65 | }; |
66 | 66 | } |
67 | 67 | $processor = $this->processors[$index]; |
68 | 68 | |
69 | - return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData { |
|
69 | + return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData { |
|
70 | 70 | return $processor($request, $grantTypeData, $grantType, $this->callableForNextRule($index + 1)); |
71 | 71 | }; |
72 | 72 | } |