@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Command/User/CreateRolesCommand.php |
5 | 5 | * |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | $created = array_sum( |
55 | 55 | array_map( |
56 | - fn (string $role): int => $this->createRole($role), |
|
56 | + fn(string $role): int => $this->createRole($role), |
|
57 | 57 | $this->rolesService->getRoles(), |
58 | 58 | ), |
59 | 59 | ); |
@@ -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/DTO/User/User.php |
5 | 5 | * |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | $entity->clearUserGroups(); |
287 | 287 | |
288 | 288 | array_map( |
289 | - static fn (UserGroupEntity $userGroup): UserGroupAwareInterface => $entity->addUserGroup($userGroup), |
|
289 | + static fn(UserGroupEntity $userGroup): UserGroupAwareInterface => $entity->addUserGroup($userGroup), |
|
290 | 290 | $value, |
291 | 291 | ); |
292 | 292 |
@@ -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): self |
@@ -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/DTO/Traits/PatchUserGroups.php |
5 | 5 | * |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | protected function updateUserGroups(UserGroupAwareInterface $entity, array $value): self |
29 | 29 | { |
30 | 30 | array_map( |
31 | - static fn (UserGroupEntity $userGroup): UserGroupAwareInterface => $entity->addUserGroup($userGroup), |
|
31 | + static fn(UserGroupEntity $userGroup): UserGroupAwareInterface => $entity->addUserGroup($userGroup), |
|
32 | 32 | $value, |
33 | 33 | ); |
34 | 34 |
@@ -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/ApiKey/ApiKey.php |
5 | 5 | * |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $entity->clearUserGroups(); |
129 | 129 | |
130 | 130 | array_map( |
131 | - static fn (UserGroupEntity $userGroup): UserGroupAwareInterface => $entity->addUserGroup($userGroup), |
|
131 | + static fn(UserGroupEntity $userGroup): UserGroupAwareInterface => $entity->addUserGroup($userGroup), |
|
132 | 132 | $value, |
133 | 133 | ); |
134 | 134 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Entity/Interfaces/UserGroupAwareInterface.php |
5 | 5 | * |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | /** |
24 | 24 | * @return Collection<int, UserGroup>|ArrayCollection<int, UserGroup> |
25 | 25 | */ |
26 | - public function getUserGroups(): Collection | ArrayCollection; |
|
26 | + public function getUserGroups(): Collection|ArrayCollection; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Method to attach new userGroup to current user OR api key. |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Entity/DateDimension.php |
5 | 5 | * |
@@ -327,6 +327,6 @@ discard block |
||
327 | 327 | { |
328 | 328 | $output = DateTimeImmutable::createFromFormat('U', (string)$this->getUnixTime(), new DateTimeZone('UTC')); |
329 | 329 | |
330 | - return $output === false ? new DateTimeImmutable(timezone: new DateTimeZone('UTC')) : $output; |
|
330 | + return $output === false ? new DateTimeImmutable(timezone : new DateTimeZone('UTC')) : $output; |
|
331 | 331 | } |
332 | 332 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/EventSubscriber/RequestLogSubscriber.php |
5 | 5 | * |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $request = $event->getRequest(); |
70 | 70 | $path = $request->getPathInfo(); |
71 | 71 | |
72 | - $filter = static fn (string $route): bool => |
|
72 | + $filter = static fn(string $route): bool => |
|
73 | 73 | str_contains($route, '/*') && str_contains($path, substr($route, 0, -2)); |
74 | 74 | |
75 | 75 | // We don't want to log OPTIONS requests, /_profiler* -path, ignored routes and wildcard ignored routes |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Exception/models/ValidatorError.php |
5 | 5 | * |
@@ -20,10 +20,10 @@ discard block |
||
20 | 20 | */ |
21 | 21 | class ValidatorError |
22 | 22 | { |
23 | - public string | Stringable $message; |
|
23 | + public string|Stringable $message; |
|
24 | 24 | public string $propertyPath; |
25 | 25 | public string $target; |
26 | - public string | null $code; |
|
26 | + public string|null $code; |
|
27 | 27 | |
28 | 28 | public function __construct(ConstraintViolationInterface $error, string $target) |
29 | 29 | { |