@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Form/DataTransformer/RoleTransformer.php |
5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Form/DataTransformer/UserGroupTransformer.php |
5 | 5 | * |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * |
43 | 43 | * @return array |
44 | 44 | */ |
45 | - public function transform($userGroups): ?array |
|
45 | + public function transform($userGroups): ? array |
|
46 | 46 | { |
47 | 47 | $output = []; |
48 | 48 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @return string |
54 | 54 | */ |
55 | - $iterator = function ($userGroup) { |
|
55 | + $iterator = function($userGroup) { |
|
56 | 56 | return \is_string($userGroup) ? $userGroup : $userGroup->getId(); |
57 | 57 | }; |
58 | 58 | |
@@ -71,12 +71,12 @@ discard block |
||
71 | 71 | * |
72 | 72 | * @throws TransformationFailedException if object (issue) is not found. |
73 | 73 | */ |
74 | - public function reverseTransform($userGroups): ?array |
|
74 | + public function reverseTransform($userGroups): ? array |
|
75 | 75 | { |
76 | 76 | $output = null; |
77 | 77 | |
78 | 78 | if (\is_array($userGroups)) { |
79 | - $iterator = function (string $groupId) { |
|
79 | + $iterator = function(string $groupId) { |
|
80 | 80 | $group = $this->resource->findOne($groupId); |
81 | 81 | |
82 | 82 | if ($group === null) { |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Doctrine/DBAL/Types/EnumLogLoginType.php |
5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Doctrine/DBAL/Types/EnumType.php |
5 | 5 | * |
@@ -38,11 +38,11 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string |
40 | 40 | { |
41 | - $iterator = function (string $value): string { |
|
41 | + $iterator = function(string $value): string { |
|
42 | 42 | return "'" . $value . "'"; |
43 | 43 | }; |
44 | 44 | |
45 | - return 'ENUM(' . \implode(', ', \array_map($iterator, static::$values)). ')'; |
|
45 | + return 'ENUM(' . \implode(', ', \array_map($iterator, static::$values)) . ')'; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -52,7 +52,7 @@ |
||
52 | 52 | * |
53 | 53 | * @throws \LogicException |
54 | 54 | */ |
55 | - public static function encode($input, ?int $options = null, ?int $depth = null): string |
|
55 | + public static function encode($input, ?int $options = null, ?int $depth = null) : string |
|
56 | 56 | { |
57 | 57 | $options = $options ?? 0; |
58 | 58 | $depth = $depth ?? 512; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Utils/Tests/RestTraitTestCase.php |
5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Utils/Tests/RestIntegrationControllerTestCase.php |
5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Utils/Tests/Auth.php |
5 | 5 | * |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | if ($response->getStatusCode() !== 200) { |
134 | - throw new \UnexpectedValueException('Invalid status code: '. $response->getStatusCode()); |
|
134 | + throw new \UnexpectedValueException('Invalid status code: ' . $response->getStatusCode()); |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | return JSON::decode($response->getContent())->token; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Utils/Tests/WebTestCase.php |
5 | 5 | * |