@@ -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->tokenTypes =[ |
|
35 | + $this->tokenTypes = [ |
|
36 | 36 | new BearerTokenTypeSource(), |
37 | 37 | new MacTokenTypeSource(), |
38 | 38 | ]; |
@@ -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) |
@@ -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 @@ 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) |
@@ -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 $config['min_length'] > $config['max_length']; |
55 | 55 | }) |
56 | 56 | ->thenInvalid('The option "min_length" must not be greater than "max_length".') |
57 | 57 | ->end() |
58 | 58 | ->validate() |
59 | - ->ifTrue(function ($config) { |
|
59 | + ->ifTrue(function($config) { |
|
60 | 60 | return !in_array($config['algorithm'], ['hmac-sha-256', 'hmac-sha-1']); |
61 | 61 | }) |
62 | 62 | ->thenInvalid('The algorithm is not supported. Please use one of the following one: "hmac-sha-1", "hmac-sha-256".') |
@@ -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 @@ |
||
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) |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $node |
46 | 46 | ->addDefaultsIfNotSet() |
47 | 47 | ->validate() |
48 | - ->ifTrue(function ($config) { |
|
48 | + ->ifTrue(function($config) { |
|
49 | 49 | return true === $config['enabled'] && empty($config['repository']); |
50 | 50 | }) |
51 | 51 | ->thenInvalid('The option "repository" 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) |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | protected function continueLoading(string $path, ContainerBuilder $container, array $config) |
35 | 35 | { |
36 | - $loader = new PhpConfigFileLoader($container, new FileLocator(__DIR__ . '/../../Resources/config')); |
|
36 | + $loader = new PhpConfigFileLoader($container, new FileLocator(__DIR__.'/../../Resources/config')); |
|
37 | 37 | $loader->load('client.php'); |
38 | 38 | } |
39 | 39 |
@@ -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) |