@@ -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) |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | parent::continueConfiguration($node); |
| 80 | 80 | $node |
| 81 | 81 | ->validate() |
| 82 | - ->ifTrue(function ($config) { |
|
| 82 | + ->ifTrue(function($config) { |
|
| 83 | 83 | return true === $config['enabled'] && empty($config['by_default']); |
| 84 | 84 | }) |
| 85 | 85 | ->thenInvalid('The option "repository" must be set.') |
@@ -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) |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | parent::continueConfiguration($node); |
| 45 | 45 | $node |
| 46 | 46 | ->validate() |
| 47 | - ->ifTrue(function ($config) { |
|
| 47 | + ->ifTrue(function($config) { |
|
| 48 | 48 | return true === $config['enabled'] && empty($config['repository']); |
| 49 | 49 | }) |
| 50 | 50 | ->thenInvalid('The option "repository" must be set.') |
@@ -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) |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * @return ScopePolicyInterface|null |
| 73 | 73 | */ |
| 74 | - public function default(): ?ScopePolicyInterface |
|
| 74 | + public function default(): ? ScopePolicyInterface |
|
| 75 | 75 | { |
| 76 | 76 | if (null === $this->defaultScopePolicy) { |
| 77 | 77 | return null; |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * |
| 105 | 105 | * @return ScopePolicyInterface|null |
| 106 | 106 | */ |
| 107 | - private function getForClient(Client $client): ?ScopePolicyInterface |
|
| 107 | + private function getForClient(Client $client): ? ScopePolicyInterface |
|
| 108 | 108 | { |
| 109 | 109 | if ($client->has('scope_policy') && $this->has($client->get('scope_policy'))) { |
| 110 | 110 | $policyName = $client->get('scope_policy'); |
@@ -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_policy')) { |
| 42 | 42 | Assertion::true($this->scopePolicyManager->has($commandParameters->get('scope_policy')), sprintf('The scope policy \'%s\' is not supported.', $commandParameters->get('scope_policy'))); |
@@ -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 @@ 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 | } |