Passed
Push — master ( c28736...a1fc90 )
by Tarmo
08:09
created
src/Security/UserTypeIdentification.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/Security/UserTypeIdentification.php
5 5
  *
Please login to merge, or discard this patch.
src/Rest/ResponseHandler.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/Rest/ResponseHandler.php
5 5
  *
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             );
101 101
 
102 102
             $groups = array_merge([$entityName], $populate);
103
-            $filter = static fn (string $groupName): bool => strncmp($groupName, 'Set.', 4) === 0;
103
+            $filter = static fn(string $groupName): bool => strncmp($groupName, 'Set.', 4) === 0;
104 104
 
105 105
             if (array_key_exists('populateOnly', $request->query->all())
106 106
                 || count(array_filter($groups, $filter)) > 0
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         if ($populateAll && count($populate) === 0) {
201 201
             $associations = $restResource->getAssociations();
202 202
             $populate = array_map(
203
-                static fn (string $assocName): string => $entityName . '.' . $assocName,
203
+                static fn(string $assocName): string => $entityName . '.' . $assocName,
204 204
                 $associations
205 205
             );
206 206
         }
Please login to merge, or discard this patch.
src/Rest/UuidHelper.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/UuidHelper.php
5 5
  *
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             }
59 59
         } catch (InvalidUuidStringException $exception) {
60 60
             // ok, so now we know that value isn't uuid
61
-            (static fn (Throwable $exception): Throwable => $exception)($exception);
61
+            (static fn(Throwable $exception): Throwable => $exception)($exception);
62 62
         }
63 63
 
64 64
         return $output;
Please login to merge, or discard this patch.
src/Rest/RepositoryHelper.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/Rest/RepositoryHelper.php
5 5
  *
@@ -368,11 +368,11 @@  discard block
 block discarded – undo
368 368
             try {
369 369
                 $value = array_map([UuidHelper::class, 'getBytes'], $value);
370 370
             } catch (InvalidUuidStringException $exception) {
371
-                (static fn (Throwable $exception): Throwable => $exception)($exception);
371
+                (static fn(Throwable $exception): Throwable => $exception)($exception);
372 372
             }
373 373
 
374 374
             $parameters[] = array_map(
375
-                static fn (string $value): Literal => $queryBuilder->expr()->literal(is_numeric($value)
375
+                static fn(string $value): Literal => $queryBuilder->expr()->literal(is_numeric($value)
376 376
                     ? (int)$value
377 377
                     : $value),
378 378
                 $value
Please login to merge, or discard this patch.
src/Repository/Traits/RepositoryWrappersTrait.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/Repository/Traits/RepositoryWrappersTrait.php
5 5
  *
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         try {
46 46
             $referenceId = UuidHelper::fromString($id);
47 47
         } catch (InvalidUuidStringException $exception) {
48
-            (static fn (Throwable $exception): string => (string)$exception)($exception);
48
+            (static fn(Throwable $exception): string => (string)$exception)($exception);
49 49
 
50 50
             $referenceId = $id;
51 51
         }
Please login to merge, or discard this patch.
src/Utils/JSON.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/Utils/JSON.php
5 5
  *
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $options ??= 0;
44 44
         $depth ??= 512;
45 45
 
46
-        $output = json_encode($input, JSON_THROW_ON_ERROR | $options, $depth);
46
+        $output = json_encode($input, JSON_THROW_ON_ERROR|$options, $depth);
47 47
 
48 48
         return (string)$output;
49 49
     }
@@ -70,6 +70,6 @@  discard block
 block discarded – undo
70 70
         $depth ??= 512;
71 71
         $options ??= 0;
72 72
 
73
-        return json_decode($json, $assoc, $depth, JSON_THROW_ON_ERROR | $options);
73
+        return json_decode($json, $assoc, $depth, JSON_THROW_ON_ERROR|$options);
74 74
     }
75 75
 }
Please login to merge, or discard this patch.
src/EventListener/UserEntityEventListener.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/EventListener/UserEntityEventListener.php
5 5
  *
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             }
95 95
 
96 96
             // Password hash callback
97
-            $callback = fn (string $plainPassword): string => $this->userPasswordEncoder
97
+            $callback = fn(string $plainPassword): string => $this->userPasswordEncoder
98 98
                 ->encodePassword(new SecurityUser($user, []), $plainPassword);
99 99
 
100 100
             // Set new password and encode it with user encoder
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
  *
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             || count(
110 110
                 array_filter(
111 111
                     $this->ignoredRoutes,
112
-                    static fn ($route): bool => strpos($route, '/*') !== false
112
+                    static fn($route): bool => strpos($route, '/*') !== false
113 113
                         && strpos($path, substr($route, 0, -2)) !== false
114 114
                 )
115 115
             ) !== 0
Please login to merge, or discard this patch.
src/Resource/ResourceCollection.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/Resource/ResourceCollection.php
5 5
  *
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     public function filter(string $className): Closure
73 73
     {
74
-        return static fn (RestResourceInterface $restResource): bool => $restResource instanceof $className;
74
+        return static fn(RestResourceInterface $restResource): bool => $restResource instanceof $className;
75 75
     }
76 76
 
77 77
     public function error(string $className): void
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             return null;
98 98
         }
99 99
 
100
-        $callback = static fn (RestResourceInterface $resource): bool => $resource->getEntityName() === $entityName;
100
+        $callback = static fn(RestResourceInterface $resource): bool => $resource->getEntityName() === $entityName;
101 101
 
102 102
         $filteredIterator = new CallbackFilterIterator(new IteratorIterator($iterator), $callback);
103 103
         $filteredIterator->rewind();
Please login to merge, or discard this patch.