@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Spiechu\SymfonyCommonsBundle\Service\SchemaValidator; |
6 | 6 |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | ->cannotBeEmpty() |
57 | 57 | ->defaultValue('_method') |
58 | 58 | ->validate() |
59 | - ->ifTrue(function ($methodName): bool { |
|
59 | + ->ifTrue(function($methodName): bool { |
|
60 | 60 | return !\is_string($methodName); |
61 | 61 | }) |
62 | 62 | ->thenInvalid('Not a string provided') |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | ->end() |
79 | 79 | ->beforeNormalization() |
80 | 80 | ->ifArray() |
81 | - ->then(function (array $methods): array { |
|
81 | + ->then(function(array $methods): array { |
|
82 | 82 | return array_unique(array_map('strtoupper', $methods)); |
83 | 83 | }) |
84 | 84 | ->end() |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | protected function addApiVersionSupport(ArrayNodeDefinition $rootNode): void |
122 | 122 | { |
123 | - $versionNormalizer = static function ($version): string { |
|
123 | + $versionNormalizer = static function($version): string { |
|
124 | 124 | if (\is_string($version)) { |
125 | 125 | return $version; |
126 | 126 | } |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | ->end() |
158 | 158 | ->end() |
159 | 159 | ->beforeNormalization() |
160 | - ->always(function ($prototypeValue): array { |
|
160 | + ->always(function($prototypeValue): array { |
|
161 | 161 | if (empty($prototypeValue)) { |
162 | 162 | throw new \InvalidArgumentException('No version constraints provided'); |
163 | 163 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Spiechu\SymfonyCommonsBundle\Service\SchemaValidator; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Spiechu\SymfonyCommonsBundle\Service; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Spiechu\SymfonyCommonsBundle\EventListener; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Spiechu\SymfonyCommonsBundle\Utils; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Spiechu\SymfonyCommonsBundle\Twig; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Spiechu\SymfonyCommonsBundle\DependencyInjection\Compiler; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Spiechu\SymfonyCommonsBundle\DependencyInjection; |
6 | 6 |