@@ -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) |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * |
31 | 31 | * @param ScopeRepositoryInterface|null $scopeRepository |
32 | 32 | */ |
33 | - public function __construct(?ScopeRepositoryInterface $scopeRepository) |
|
33 | + public function __construct(? ScopeRepositoryInterface $scopeRepository) |
|
34 | 34 | { |
35 | 35 | if (null !== $scopeRepository) { |
36 | 36 | $this->processors[] = new ScopeProcessor($scopeRepository); |
@@ -58,13 +58,13 @@ discard block |
||
58 | 58 | private function callableForNextRule(int $index): \Closure |
59 | 59 | { |
60 | 60 | if (!isset($this->processors[$index])) { |
61 | - return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData { |
|
61 | + return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData { |
|
62 | 62 | return $grantType->grant($request, $grantTypeData); |
63 | 63 | }; |
64 | 64 | } |
65 | 65 | $processor = $this->processors[$index]; |
66 | 66 | |
67 | - return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData { |
|
67 | + return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData { |
|
68 | 68 | return $processor($request, $grantTypeData, $grantType, $this->callableForNextRule($index + 1)); |
69 | 69 | }; |
70 | 70 | } |