@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Validator/Constraints/Timezone.php |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Validator/Constraints/Locale.php |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Validator/Constraints/LocaleValidator.php |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Validator/Constraints/Language.php |
| 5 | 5 | * |
@@ -1,6 +1,6 @@ |
||
| 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 */ |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Security/UserTypeIdentification.php |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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; |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 |