@@ -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 | } |
@@ -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) |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function __construct() |
39 | 39 | { |
40 | - $this->options = JSON_NUMERIC_CHECK|JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE; |
|
40 | + $this->options = JSON_NUMERIC_CHECK | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE; |
|
41 | 41 | $domainUriLoader = new DomainUriLoader(); |
42 | 42 | $loaderManager = new LoaderManager(['https' => $domainUriLoader]); |
43 | 43 | $this->dereferencer = new Dereferencer($loaderManager); |