@@ -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 | } |