@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Command/Utils/CheckDependencies.php |
| 5 | 5 | * |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $packageNameLength = max( |
| 106 | 106 | array_map( |
| 107 | 107 | static fn (array $row): int => isset($row[1]) ? strlen($row[1]) : 0, |
| 108 | - array_filter($rows, static fn (mixed $row): bool => !$row instanceof TableSeparator) |
|
| 108 | + array_filter($rows, static fn (mixed $row) : bool => !$row instanceof TableSeparator) |
|
| 109 | 109 | ) + [0] |
| 110 | 110 | ); |
| 111 | 111 | |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 44 | 44 | */ |
| 45 | 45 | public function transform(mixed $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 |
||
| 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 | ), |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * rector.php |
| 5 | 5 | * |