Passed
Push — master ( f32054...0e8b83 )
by Tarmo
107:11 queued 42:11
created
src/AutoMapper/RestRequestMapper.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/AutoMapper/RestRequestMapper.php
5 5
  *
@@ -137,6 +137,6 @@  discard block
 block discarded – undo
137 137
      */
138 138
     private function getValidProperties(Request $request): array
139 139
     {
140
-        return array_filter(static::$properties, static fn ($property) => $request->request->has($property));
140
+        return array_filter(static::$properties, static fn($property) => $request->request->has($property));
141 141
     }
142 142
 }
Please login to merge, or discard this patch.
src/Rest/RequestHandler.php 1 patch
Spacing   +5 added lines, -5 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/RequestHandler.php
5 5
  *
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         try {
66 66
             $where = array_filter(
67 67
                 (array)JSON::decode((string)$request->get('where', '{}'), true),
68
-                static fn ($value): bool => $value !== null
68
+                static fn($value): bool => $value !== null
69 69
             );
70 70
         } catch (JsonException $error) {
71 71
             throw new HttpException(
@@ -214,8 +214,8 @@  discard block
 block discarded – undo
214 214
             $searchTerms = JSON::decode($search, true);
215 215
 
216 216
             self::checkSearchTerms($searchTerms);
217
-        } catch (JsonException | LogicException $exception) {
218
-            (static fn (Throwable $exception): string => (string)$exception)($exception);
217
+        } catch (JsonException|LogicException $exception) {
218
+            (static fn(Throwable $exception): string => (string)$exception)($exception);
219 219
 
220 220
             $searchTerms = null;
221 221
         }
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
     private static function normalizeSearchTerms(array $searchTerms): array
255 255
     {
256 256
         // Normalize user input, note that this support array and string formats on value
257
-        array_walk($searchTerms, static fn (array $terms): array => array_unique(array_values(array_filter($terms))));
257
+        array_walk($searchTerms, static fn(array $terms): array => array_unique(array_values(array_filter($terms))));
258 258
 
259 259
         return $searchTerms;
260 260
     }
Please login to merge, or discard this patch.
src/Rest/Traits/Methods/RestMethodProcessCriteria.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * /src/Rest/Traits/RestMethodProcessCriteria.php
5 5
  *
Please login to merge, or discard this patch.
src/Validator/Constraints/EntityReferenceExistsValidator.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/App/Validator/Constraints/EntityReferenceExistsValidator.php
5 5
  *
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     private function getInvalidValues(array $entities): array
121 121
     {
122 122
         return array_map(
123
-            static fn (EntityInterface $entity): string => $entity->getId(),
123
+            static fn(EntityInterface $entity): string => $entity->getId(),
124 124
             array_filter($entities, $this->getFilterClosure())
125 125
         );
126 126
     }
Please login to merge, or discard this patch.
src/Entity/Traits/UserRelations.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/Traits/UserRelations.php
5 5
  *
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     public function getRoles(): array
106 106
     {
107 107
         return $this->userGroups
108
-            ->map(static fn (UserGroup $userGroup): string => $userGroup->getRole()->getId())
108
+            ->map(static fn(UserGroup $userGroup): string => $userGroup->getRole()->getId())
109 109
             ->toArray();
110 110
     }
111 111
 
Please login to merge, or discard this patch.
src/Exception/ValidatorException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * /src/Exception/ValidatorException.php
5 5
  *
Please login to merge, or discard this patch.
src/Exception/interfaces/ClientErrorInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * /src/Exception/interfaces/ClientErrorInterface.php
5 5
  *
Please login to merge, or discard this patch.
src/Doctrine/DBAL/Types/EnumLocaleType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * /src/Doctrine/DBAL/Types/EnumLocaleType.php
5 5
  *
Please login to merge, or discard this patch.
src/Doctrine/DBAL/Types/EnumLanguageType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * /src/Doctrine/DBAL/Types/EnumLanguageType.php
5 5
  *
Please login to merge, or discard this patch.