@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | ->cannotBeEmpty() |
43 | 43 | ->defaultValue('_method') |
44 | 44 | ->validate() |
45 | - ->ifTrue(function ($methodName): bool { |
|
45 | + ->ifTrue(function($methodName): bool { |
|
46 | 46 | return !is_string($methodName); |
47 | 47 | }) |
48 | 48 | ->thenInvalid('Not a string provided') |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | ->end() |
65 | 65 | ->beforeNormalization() |
66 | 66 | ->ifArray() |
67 | - ->then(function (array $methods): array { |
|
67 | + ->then(function(array $methods): array { |
|
68 | 68 | return array_unique(array_map('strtoupper', $methods)); |
69 | 69 | }) |
70 | 70 | ->end() |
@@ -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\Annotation\Controller; |
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\Annotation\Controller; |
6 | 6 |
@@ -1,12 +1,12 @@ |
||
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 | |
7 | 7 | class ArrayUtils |
8 | 8 | { |
9 | - public static function flatArrayRecursive(?array $array): array |
|
9 | + public static function flatArrayRecursive(? array $array) : array |
|
10 | 10 | { |
11 | 11 | if (empty($array)) { |
12 | 12 | return []; |
@@ -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\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\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\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\EventListener; |
6 | 6 |