@@ -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) |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $loader->load('services.yml'); |
58 | 58 | |
59 | 59 | $parameters = [ |
60 | - 'oauth2_server.simple_string_access_token.token_manager' => ['type' => 'alias', 'path' => '[manager]'], |
|
60 | + 'oauth2_server.simple_string_access_token.token_manager' => ['type' => 'alias', 'path' => '[manager]'], |
|
61 | 61 | 'oauth2_server.simple_string_access_token.token_class' => ['type' => 'parameter', 'path' => '[class]'], |
62 | 62 | 'oauth2_server.simple_string_access_token.min_length' => ['type' => 'parameter', 'path' => '[min_length]'], |
63 | 63 | 'oauth2_server.simple_string_access_token.max_length' => ['type' => 'parameter', 'path' => '[max_length]'], |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | ->isRequired() |
77 | 77 | ->addDefaultsIfNotSet() |
78 | 78 | ->validate() |
79 | - ->ifTrue(function ($value) { |
|
79 | + ->ifTrue(function($value) { |
|
80 | 80 | return $value['min_length'] >= $value['max_length']; |
81 | 81 | }) |
82 | 82 | ->thenInvalid('The configuration option "min_length" must be lower than "max_length".') |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | ->end() |
100 | 100 | ->scalarNode('class') |
101 | 101 | ->validate() |
102 | - ->ifTrue(function ($value) { |
|
102 | + ->ifTrue(function($value) { |
|
103 | 103 | return !class_exists($value); |
104 | 104 | }) |
105 | 105 | ->thenInvalid('The class does not exist.') |
@@ -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) |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | $parameters = [ |
49 | 49 | 'oauth2_server.scope_manager.scope_policy' => ['type' => 'parameter', 'path' => '[policy]'], |
50 | - 'oauth2_server.scope.available_scope' => ['type' => 'parameter', 'path' => '[available_scope]', 'callback' => function ($value) { |
|
50 | + 'oauth2_server.scope.available_scope' => ['type' => 'parameter', 'path' => '[available_scope]', 'callback' => function($value) { |
|
51 | 51 | return array_unique($value); |
52 | 52 | }], |
53 | 53 | ]; |
@@ -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 | ->isRequired() |
47 | 47 | ->addDefaultsIfNotSet() |
48 | 48 | ->validate() |
49 | - ->ifTrue(function ($value) { |
|
49 | + ->ifTrue(function($value) { |
|
50 | 50 | return $value['min_length'] >= $value['max_length']; |
51 | 51 | }) |
52 | 52 | ->thenInvalid('The configuration option "min_length" must be lower than "max_length".') |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | ->info('Authorization Code class.') |
57 | 57 | ->isRequired() |
58 | 58 | ->validate() |
59 | - ->ifTrue(function ($value) { |
|
59 | + ->ifTrue(function($value) { |
|
60 | 60 | return !class_exists($value); |
61 | 61 | }) |
62 | 62 | ->thenInvalid('The class does not exist.') |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | 'oauth2_server.auth_code.lifetime' => ['type' => 'parameter', 'path' => '[lifetime]'], |
115 | 115 | 'oauth2_server.auth_code.enforce_pkce' => ['type' => 'parameter', 'path' => '[enforce_pkce]'], |
116 | 116 | 'oauth2_server.auth_code.allow_public_clients' => ['type' => 'parameter', 'path' => '[allow_public_clients]'], |
117 | - 'oauth2_server.auth_code.manager' => ['type' => 'alias', 'path' => '[manager]'], |
|
117 | + 'oauth2_server.auth_code.manager' => ['type' => 'alias', 'path' => '[manager]'], |
|
118 | 118 | ]; |
119 | 119 | $this->loadParameters($parameters, $pluginConfiguration, $container); |
120 | 120 | } |
@@ -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) |
@@ -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 | } |