@@ -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) |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | parent::continueConfiguration($node); |
44 | 44 | $node |
45 | 45 | ->validate() |
46 | - ->ifTrue(function ($config) { |
|
46 | + ->ifTrue(function($config) { |
|
47 | 47 | return true === $config['enabled'] && empty($config['route_name']); |
48 | 48 | }) |
49 | 49 | ->thenInvalid('The route name 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) |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function __construct() |
34 | 34 | { |
35 | - $this->subSources =[ |
|
35 | + $this->subSources = [ |
|
36 | 36 | new AuthorizationEndpointPreConfiguredAuthorizationSource(), |
37 | 37 | new AuthorizationEndpointIdTokenHintSource(), |
38 | 38 | ]; |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $container->setParameter($path.'.'.$k, $v); |
48 | 48 | } |
49 | 49 | |
50 | - $loader = new PhpConfigFileLoader($container, new FileLocator(__DIR__ . '/../../../Resources/config/endpoint')); |
|
50 | + $loader = new PhpConfigFileLoader($container, new FileLocator(__DIR__.'/../../../Resources/config/endpoint')); |
|
51 | 51 | $loader->load('authorization.php'); |
52 | 52 | $loader->load('response_mode.php'); |
53 | 53 | foreach ($this->subSources as $source) { |
@@ -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) |
@@ -49,18 +49,18 @@ discard block |
||
49 | 49 | parent::continueConfiguration($node); |
50 | 50 | $node |
51 | 51 | ->validate() |
52 | - ->ifTrue(function ($config) { |
|
52 | + ->ifTrue(function($config) { |
|
53 | 53 | return true === $config['enabled'] && empty($config['path']); |
54 | 54 | }) |
55 | 55 | ->thenInvalid('The route name must be set.') |
56 | 56 | ->end() |
57 | 57 | ->validate() |
58 | - ->ifTrue(function ($config) { |
|
58 | + ->ifTrue(function($config) { |
|
59 | 59 | return true === $config['enabled'] && empty($config['storage_name']); |
60 | 60 | })->thenInvalid('The option "storage_name" must be set.') |
61 | 61 | ->end() |
62 | 62 | ->validate() |
63 | - ->ifTrue(function ($config) { |
|
63 | + ->ifTrue(function($config) { |
|
64 | 64 | return true === $config['enabled'] && empty($config['template']); |
65 | 65 | })->thenInvalid('The option "template" must be set.') |
66 | 66 | ->end() |
@@ -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 | $container->setParameter($path.'.'.$k, $v); |
31 | 31 | } |
32 | 32 | |
33 | - $loader = new PhpConfigFileLoader($container, new FileLocator(__DIR__ . '/../../../Resources/config/endpoint')); |
|
33 | + $loader = new PhpConfigFileLoader($container, new FileLocator(__DIR__.'/../../../Resources/config/endpoint')); |
|
34 | 34 | $loader->load('authorization.php'); |
35 | 35 | } |
36 | 36 |
@@ -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 | $container->setParameter($path.'.'.$k, $v); |
31 | 31 | } |
32 | 32 | |
33 | - $loader = new PhpConfigFileLoader($container, new FileLocator(__DIR__ . '/../../../Resources/config/endpoint')); |
|
33 | + $loader = new PhpConfigFileLoader($container, new FileLocator(__DIR__.'/../../../Resources/config/endpoint')); |
|
34 | 34 | $loader->load('client_registration_initial_access_token.php'); |
35 | 35 | } |
36 | 36 | |
@@ -50,13 +50,13 @@ discard block |
||
50 | 50 | parent::continueConfiguration($node); |
51 | 51 | $node |
52 | 52 | ->validate() |
53 | - ->ifTrue(function ($config) { |
|
53 | + ->ifTrue(function($config) { |
|
54 | 54 | return true === $config['enabled'] && empty($config['realm']); |
55 | 55 | }) |
56 | 56 | ->thenInvalid('The option "realm" must be set.') |
57 | 57 | ->end() |
58 | 58 | ->validate() |
59 | - ->ifTrue(function ($config) { |
|
59 | + ->ifTrue(function($config) { |
|
60 | 60 | return true === $config['enabled'] && empty($config['class']); |
61 | 61 | }) |
62 | 62 | ->thenInvalid('The option "class" must be set.') |
@@ -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) |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $container->setParameter($path.'.'.$k, $v); |
31 | 31 | } |
32 | 32 | |
33 | - $loader = new PhpConfigFileLoader($container, new FileLocator(__DIR__ . '/../../../Resources/config/endpoint')); |
|
33 | + $loader = new PhpConfigFileLoader($container, new FileLocator(__DIR__.'/../../../Resources/config/endpoint')); |
|
34 | 34 | $loader->load('client_configuration.php'); |
35 | 35 | } |
36 | 36 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | parent::continueConfiguration($node); |
51 | 51 | $node |
52 | 52 | ->validate() |
53 | - ->ifTrue(function ($config) { |
|
53 | + ->ifTrue(function($config) { |
|
54 | 54 | return true === $config['enabled'] && empty($config['realm']); |
55 | 55 | }) |
56 | 56 | ->thenInvalid('The option "realm" must be set.') |
@@ -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) |
@@ -48,13 +48,13 @@ discard block |
||
48 | 48 | parent::continueConfiguration($node); |
49 | 49 | $node |
50 | 50 | ->validate() |
51 | - ->ifTrue(function ($config) { |
|
51 | + ->ifTrue(function($config) { |
|
52 | 52 | return true === $config['enabled'] && empty($config['signature_algorithms']); |
53 | 53 | }) |
54 | 54 | ->thenInvalid('The option "signature_algorithms" must contain at least one signature algorithm.') |
55 | 55 | ->end() |
56 | 56 | ->validate() |
57 | - ->ifTrue(function ($config) { |
|
57 | + ->ifTrue(function($config) { |
|
58 | 58 | return true === $config['enabled'] && empty($config['key_set']); |
59 | 59 | }) |
60 | 60 | ->thenInvalid('The option "key_set" must be set.') |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | public function prepend(array $bundleConfig, string $path, ContainerBuilder $container) |
80 | 80 | { |
81 | 81 | $currentPath = $path.'['.$this->name().']'; |
82 | - $accessor = PropertyAccess::createPropertyAccessor(); |
|
82 | + $accessor = PropertyAccess::createPropertyAccessor(); |
|
83 | 83 | $sourceConfig = $accessor->getValue($bundleConfig, $currentPath); |
84 | 84 | |
85 | 85 | if (true === $sourceConfig['enabled']) { |