@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Rest/ControllerCollection.php |
5 | 5 | * |
@@ -50,6 +50,6 @@ discard block |
||
50 | 50 | |
51 | 51 | public function filter(string $className): Closure |
52 | 52 | { |
53 | - return static fn (ControllerInterface $restController): bool => $restController instanceof $className; |
|
53 | + return static fn(ControllerInterface $restController): bool => $restController instanceof $className; |
|
54 | 54 | } |
55 | 55 | } |
@@ -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 | * |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string |
37 | 37 | { |
38 | - $iterator = static fn (string $value): string => "'" . $value . "'"; |
|
38 | + $iterator = static fn(string $value): string => "'" . $value . "'"; |
|
39 | 39 | |
40 | 40 | return 'ENUM(' . implode(', ', array_map($iterator, self::getValues())) . ')'; |
41 | 41 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/DTO/RestDto.php |
5 | 5 | * |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | public function getVisited(): array |
72 | 72 | { |
73 | - return array_filter($this->visited, static fn (string $property): bool => $property !== 'id'); |
|
73 | + return array_filter($this->visited, static fn(string $property): bool => $property !== 'id'); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | public function setVisited(string $property): RestDtoInterface |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | 'has' . ucfirst($property), |
145 | 145 | ]; |
146 | 146 | |
147 | - $getterMethods = array_filter($getters, static fn (string $method): bool => method_exists($dto, $method)); |
|
147 | + $getterMethods = array_filter($getters, static fn(string $method): bool => method_exists($dto, $method)); |
|
148 | 148 | |
149 | 149 | return $this->validateGetterMethod($property, $getterMethods); |
150 | 150 | } |
@@ -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 | * |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $output = []; |
50 | 50 | |
51 | 51 | if (is_array($userGroups)) { |
52 | - $iterator = static fn ($group): string => $group instanceof UserGroup ? $group->getId() : (string)$group; |
|
52 | + $iterator = static fn($group): string => $group instanceof UserGroup ? $group->getId() : (string)$group; |
|
53 | 53 | |
54 | 54 | $output = array_values(array_map('\strval', array_map($iterator, $userGroups))); |
55 | 55 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Controller/Profile/RolesController.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/Controller/Profile/GroupsController.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/Controller/Profile/IndexController.php |
5 | 5 | * |