Passed
Pull Request — master (#1299)
by Tarmo
07:08
created
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.
src/Exception/ValidatorException.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/Exception/ValidatorException.php
5 5
  *
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         parent::__construct(
35 35
             JSON::encode(
36 36
                 array_map(
37
-                    static fn (ConstraintViolationInterface $error): ValidatorError =>
37
+                    static fn(ConstraintViolationInterface $error): ValidatorError =>
38 38
                         new ValidatorError($error, $target),
39 39
                     iterator_to_array($errors),
40 40
                 ),
Please login to merge, or discard this patch.
src/Repository/BaseRepository.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/BaseRepository.php
5 5
  *
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     {
170 170
         foreach (self::$joins as $joinType => $joins) {
171 171
             array_map(
172
-                static fn (array $joinParameters): QueryBuilder => $queryBuilder->{$joinType}(...$joinParameters),
172
+                static fn(array $joinParameters): QueryBuilder => $queryBuilder->{$joinType}(...$joinParameters),
173 173
                 $joins,
174 174
             );
175 175
 
Please login to merge, or discard this patch.
src/Repository/Traits/RepositoryMethodsTrait.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/RepositoryMethodsTrait.php
5 5
  *
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         return $output instanceof EntityInterface ? $output : null;
32 32
     }
33 33
 
34
-    public function findAdvanced(string $id, string | int | null $hydrationMode = null): null | array | EntityInterface
34
+    public function findAdvanced(string $id, string|int|null $hydrationMode = null): null|array|EntityInterface
35 35
     {
36 36
         // Get query builder
37 37
         $queryBuilder = $this->getQueryBuilder();
Please login to merge, or discard this patch.
src/Repository/Interfaces/BaseRepositoryInterface.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/Interfaces/BaseRepositoryInterface.php
5 5
  *
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      *
88 88
      * @throws NonUniqueResultException
89 89
      */
90
-    public function findAdvanced(string $id, string | int | null $hydrationMode = null): null | array | EntityInterface;
90
+    public function findAdvanced(string $id, string|int|null $hydrationMode = null): null|array|EntityInterface;
91 91
 
92 92
     /**
93 93
      * Wrapper for default Doctrine repository findOneBy method.
Please login to merge, or discard this patch.
src/Security/UserTypeIdentification.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/Security/UserTypeIdentification.php
5 5
  *
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * object implementing a __toString method, or the username as a regular
87 87
      * string.
88 88
      */
89
-    private function getUserToken(): UserInterface | Stringable | string | null
89
+    private function getUserToken(): UserInterface|Stringable|string|null
90 90
     {
91 91
         $token = $this->tokenStorage->getToken();
92 92
 
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
  *
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     public function filter(string $className): Closure
67 67
     {
68
-        return static fn (RestResourceInterface $restResource): bool => $restResource instanceof $className;
68
+        return static fn(RestResourceInterface $restResource): bool => $restResource instanceof $className;
69 69
     }
70 70
 
71 71
     public function getErrorMessage(string $className): string
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             return null;
87 87
         }
88 88
 
89
-        $callback = static fn (RestResourceInterface $resource): bool => $resource->getEntityName() === $entityName;
89
+        $callback = static fn(RestResourceInterface $resource): bool => $resource->getEntityName() === $entityName;
90 90
 
91 91
         $filteredIterator = new CallbackFilterIterator(new IteratorIterator($iterator), $callback);
92 92
         $filteredIterator->rewind();
Please login to merge, or discard this patch.