Completed
Push — master ( 0233f4...0c7686 )
by Tarmo
33s queued 23s
created
src/Form/DataTransformer/UserGroupTransformer.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/Form/DataTransformer/UserGroupTransformer.php
5 5
  *
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function transform($value): array
46 46
     {
47
-        $callback = static fn (UserGroup | Stringable $userGroup): string =>
47
+        $callback = static fn(UserGroup|Stringable $userGroup): string =>
48 48
             $userGroup instanceof UserGroup ? $userGroup->getId() : (string)$userGroup;
49 49
 
50 50
         return is_array($value) ? array_map($callback, $value) : [];
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         return is_array($value)
67 67
             ? array_map(
68
-                fn (string $groupId): UserGroup => $this->resource->findOne($groupId, false) ??
68
+                fn(string $groupId) : UserGroup => $this->resource->findOne($groupId, false) ??
69 69
                     throw new TransformationFailedException(
70 70
                         sprintf('User group with id "%s" does not exist!', $groupId),
71 71
                     ),
Please login to merge, or discard this patch.
src/Compiler/StopwatchCompilerPass.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/Compiler/StopwatchCompilerPass.php
5 5
  *
Please login to merge, or discard this patch.
src/Entity/Traits/LogRequestProcessRequestTrait.php 1 patch
Spacing   +4 added lines, -4 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/LogRequestProcessRequestTrait.php
5 5
  *
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
         // Clean possible sensitive data from parameters
340 340
         array_walk(
341 341
             $rawHeaders,
342
-            fn (mixed &$value, string $key) => $this->cleanParameters($value, $key),
342
+            fn(mixed &$value, string $key) => $this->cleanParameters($value, $key),
343 343
         );
344 344
 
345 345
         $this->headers = $rawHeaders;
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
         // Clean possible sensitive data from parameters
350 350
         array_walk(
351 351
             $rawParameters,
352
-            fn (mixed &$value, string $key) => $this->cleanParameters($value, $key),
352
+            fn(mixed &$value, string $key) => $this->cleanParameters($value, $key),
353 353
         );
354 354
 
355 355
         $this->parameters = $rawParameters;
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
         if (is_array($value)) {
428 428
             array_walk(
429 429
                 $value,
430
-                fn (mixed &$value, string $key) => $this->cleanParameters($value, $key),
430
+                fn(mixed &$value, string $key) => $this->cleanParameters($value, $key),
431 431
             );
432 432
         }
433 433
     }
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
  *
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             }
62 62
 
63 63
             // Password hash callback
64
-            $callback = fn (string $plainPassword): string => $this->userPasswordHasher
64
+            $callback = fn(string $plainPassword): string => $this->userPasswordHasher
65 65
                 ->hashPassword(new SecurityUser($user, []), $plainPassword);
66 66
 
67 67
             // Set new password and encode it with user encoder
Please login to merge, or discard this patch.
src/Security/SecurityUser.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/SecurityUser.php
5 5
  *
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 class SecurityUser implements UserInterface, PasswordAuthenticatedUserInterface
22 22
 {
23 23
     private string $identifier;
24
-    private string | null $password;
24
+    private string|null $password;
25 25
     private string $language;
26 26
     private string $locale;
27 27
     private string $timezone;
Please login to merge, or discard this patch.
src/EventSubscriber/LockedUserSubscriber.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/EventSubscriber/LockedUserSubscriber.php
5 5
  *
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
     /**
94 94
      * @throws Throwable
95 95
      */
96
-    private function getUser(string | object $user): ?User
96
+    private function getUser(string|object $user): ?User
97 97
     {
98
-        return match (true) {
98
+        return match(true) {
99 99
             is_string($user) => $this->userRepository->loadUserByIdentifier($user, false),
100 100
             $user instanceof SecurityUser =>
101 101
                 $this->userRepository->loadUserByIdentifier($user->getUserIdentifier(), true),
Please login to merge, or discard this patch.
src/Rest/Interfaces/SearchTermInterface.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/Interfaces/SearchTermInterface.php
5 5
  *
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
      * @return array<string, array<string, array<string, string>>>|null
39 39
      */
40 40
     public static function getCriteria(
41
-        array | string $column,
42
-        array | string $search,
41
+        array|string $column,
42
+        array|string $search,
43 43
         ?string $operand = null,
44 44
         ?int $mode = null,
45 45
     ): ?array;
Please login to merge, or discard this patch.
src/Command/Utils/CheckDependencies.php 1 patch
Spacing   +4 added lines, -4 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/Utils/CheckDependencies.php
5 5
  *
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
          */
87 87
         $packageNameLength = (int)max(
88 88
             array_map(
89
-                static fn (array $row): int => isset($row[1]) ? strlen($row[1]) : 0,
90
-                array_filter($rows, static fn (mixed $row): bool => !$row instanceof TableSeparator)
89
+                static fn(array $row): int => isset($row[1]) ? strlen($row[1]) : 0,
90
+                array_filter($rows, static fn(mixed $row) : bool => !$row instanceof TableSeparator)
91 91
             ) + [0]
92 92
         );
93 93
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             ->directories()
129 129
             ->in($this->projectDir . DIRECTORY_SEPARATOR . 'tools/');
130 130
 
131
-        $closure = static fn (SplFileInfo $fileInfo): string => $fileInfo->getPath();
131
+        $closure = static fn(SplFileInfo $fileInfo): string => $fileInfo->getPath();
132 132
 
133 133
         /** @var Traversable<SplFileInfo> $iterator */
134 134
         $iterator = $finder->getIterator();
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
  *
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $options ??= 0;
41 41
         $depth ??= 512;
42 42
 
43
-        return json_encode($input, JSON_THROW_ON_ERROR | $options, $depth);
43
+        return json_encode($input, JSON_THROW_ON_ERROR|$options, $depth);
44 44
     }
45 45
 
46 46
     /**
@@ -63,6 +63,6 @@  discard block
 block discarded – undo
63 63
         $depth ??= 512;
64 64
         $options ??= 0;
65 65
 
66
-        return json_decode($json, $assoc, $depth, JSON_THROW_ON_ERROR | $options);
66
+        return json_decode($json, $assoc, $depth, JSON_THROW_ON_ERROR|$options);
67 67
     }
68 68
 }
Please login to merge, or discard this patch.