Completed
Push — master ( 0233f4...0c7686 )
by Tarmo
33s queued 23s
created
src/Command/User/CreateRolesCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/DTO/User/User.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/DTO/RestDto.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/DTO/Traits/PatchUserGroups.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/DTO/ApiKey/ApiKey.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Entity/Interfaces/UserGroupAwareInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Entity/DateDimension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/EventSubscriber/RequestLogSubscriber.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Exception/models/ValidatorError.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.