Passed
Pull Request — master (#1682)
by Al
63:56
created
src/Controller/v1/UserGroup/UserGroupController.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/Controller/v1/UserGroup/UserGroupController.php
5 5
  *
Please login to merge, or discard this patch.
src/Controller/v1/Role/FindOneRoleController.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/Controller/v1/Role/FindOneRoleController.php
5 5
  *
Please login to merge, or discard this patch.
src/Controller/v1/Role/RoleController.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/Controller/v1/Role/RoleController.php
5 5
  *
Please login to merge, or discard this patch.
src/Controller/v1/Role/InheritedRolesController.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/Controller/v1/Role/InheritedRolesController.php
5 5
  *
Please login to merge, or discard this patch.
src/Doctrine/DBAL/Types/Types.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/Types.php
5 5
  *
Please login to merge, or discard this patch.
migrations/Version20211118171749.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
 // phpcs:ignoreFile
5 5
 namespace DoctrineMigrations;
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
  *
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                     (string)($request->query->get('where') ?? $request->request->get('where', '{}')),
70 70
                     true
71 71
                 ),
72
-                static fn ($value): bool => $value !== null,
72
+                static fn($value): bool => $value !== null,
73 73
             );
74 74
         } catch (JsonException $error) {
75 75
             throw new HttpException(
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
             $searchTerms = JSON::decode($search, true);
217 217
 
218 218
             self::checkSearchTerms($searchTerms);
219
-        } catch (JsonException | LogicException) {
219
+        } catch (JsonException|LogicException) {
220 220
             $searchTerms = null;
221 221
         }
222 222
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
     private static function normalizeSearchTerms(array $searchTerms): array
253 253
     {
254 254
         // Normalize user input, note that this support array and string formats on value
255
-        array_walk($searchTerms, static fn (array $terms): array => array_unique(array_values(array_filter($terms))));
255
+        array_walk($searchTerms, static fn(array $terms): array => array_unique(array_values(array_filter($terms))));
256 256
 
257 257
         return $searchTerms;
258 258
     }
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      */
263 263
     private static function getIterator(array &$output): Closure
264 264
     {
265
-        return static function (string $value, string | int $key) use (&$output): void {
265
+        return static function (string $value, string|int $key) use (&$output): void {
266 266
             $order = in_array(mb_strtoupper($value), ['ASC', 'DESC'], true) ? mb_strtoupper($value) : 'ASC';
267 267
             $column = is_string($key) ? $key : $value;
268 268
 
Please login to merge, or discard this patch.
src/Entity/Traits/LogRequestProcessRequestTrait.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/Entity/Traits/LogRequestProcessRequestTrait.php
5 5
  *
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
         // Clean possible sensitive data from parameters
325 325
         array_walk(
326 326
             $rawParameters,
327
-            fn (mixed &$value, string $key) => $this->cleanParameters($value, $key),
327
+            fn(mixed &$value, string $key) => $this->cleanParameters($value, $key),
328 328
         );
329 329
 
330 330
         $this->parameters = $rawParameters;
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
         if (is_array($value)) {
403 403
             array_walk(
404 404
                 $value,
405
-                fn (mixed &$value, string $key) => $this->cleanParameters($value, $key),
405
+                fn(mixed &$value, string $key) => $this->cleanParameters($value, $key),
406 406
             );
407 407
         }
408 408
     }
Please login to merge, or discard this patch.
src/Security/UserTypeIdentification.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/Security/UserTypeIdentification.php
5 5
  *
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
      * object implementing a __toString method, or the username as a regular
89 89
      * string.
90 90
      */
91
-    private function getUserToken(): UserInterface | null
91
+    private function getUserToken(): UserInterface|null
92 92
     {
93 93
         $token = $this->tokenStorage->getToken();
94 94
 
95
-        return $token?->getUser();
95
+        return $token ? ->getUser();
96 96
     }
97 97
 }
Please login to merge, or discard this patch.