Passed
Pull Request — master (#753)
by Alexandr
61:14
created
src/Validator/Constraints/Timezone.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/Validator/Constraints/Timezone.php
5 5
  *
Please login to merge, or discard this patch.
src/Validator/Constraints/Locale.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/Validator/Constraints/Locale.php
5 5
  *
Please login to merge, or discard this patch.
src/Validator/Constraints/LocaleValidator.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/Validator/Constraints/LocaleValidator.php
5 5
  *
Please login to merge, or discard this patch.
src/Validator/Constraints/Language.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/Validator/Constraints/Language.php
5 5
  *
Please login to merge, or discard this patch.
src/Migrations/Version20200229154730.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 // phpcs:ignoreFile
6 6
 /** @noinspection PhpIllegalPsrClassPathInspection */
Please login to merge, or discard this patch.
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.