@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Resource/UserResource.php |
| 5 | 5 | * |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * |
| 78 | 78 | * @return bool |
| 79 | 79 | */ |
| 80 | - $filter = fn (Entity $user): bool => in_array( |
|
| 80 | + $filter = fn(Entity $user): bool => in_array( |
|
| 81 | 81 | $userGroup->getRole()->getId(), |
| 82 | 82 | $this->rolesService->getInheritedRoles($user->getRoles()), |
| 83 | 83 | true |
@@ -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/User/CreateRolesCommand.php |
| 5 | 5 | * |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | $created = array_sum( |
| 77 | 77 | array_map( |
| 78 | - fn (string $role): int => $this->createRole($role), |
|
| 78 | + fn(string $role): int => $this->createRole($role), |
|
| 79 | 79 | $this->rolesService->getRoles() |
| 80 | 80 | ) |
| 81 | 81 | ); |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/EventSubscriber/LocaleSubscriber.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/Security/Handler/TranslatedAuthenticationFailureHandler.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/Command/User/ListUserGroupsCommand.php |
| 5 | 5 | * |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | private function getFormatterUserGroup(): Closure |
| 101 | 101 | { |
| 102 | - $userFormatter = static fn (User $user): string => sprintf( |
|
| 102 | + $userFormatter = static fn(User $user): string => sprintf( |
|
| 103 | 103 | '%s %s <%s>', |
| 104 | 104 | $user->getFirstName(), |
| 105 | 105 | $user->getLastName(), |
@@ -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/User/ListUsersCommand.php |
| 5 | 5 | * |
@@ -104,13 +104,13 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | private function getFormatterUser(): Closure |
| 106 | 106 | { |
| 107 | - $userGroupFormatter = static fn (UserGroup $userGroup): string => sprintf( |
|
| 107 | + $userGroupFormatter = static fn(UserGroup $userGroup): string => sprintf( |
|
| 108 | 108 | '%s (%s)', |
| 109 | 109 | $userGroup->getName(), |
| 110 | 110 | $userGroup->getRole()->getId() |
| 111 | 111 | ); |
| 112 | 112 | |
| 113 | - return fn (User $user): array => [ |
|
| 113 | + return fn(User $user): array => [ |
|
| 114 | 114 | $user->getId(), |
| 115 | 115 | $user->getUsername(), |
| 116 | 116 | $user->getEmail(), |
@@ -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 | * |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | * |
| 126 | 126 | * @return string |
| 127 | 127 | */ |
| 128 | - $closure = static fn (SplFileInfo $fileInfo): string => $fileInfo->getPath(); |
|
| 128 | + $closure = static fn(SplFileInfo $fileInfo): string => $fileInfo->getPath(); |
|
| 129 | 129 | |
| 130 | 130 | /** @var Traversable $iterator */ |
| 131 | 131 | $iterator = $finder->getIterator(); |
@@ -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/ApiKey/ListApiKeysCommand.php |
| 5 | 5 | * |
@@ -107,13 +107,13 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | private function getFormatterApiKey(): Closure |
| 109 | 109 | { |
| 110 | - $userGroupFormatter = static fn (UserGroup $userGroup): string => sprintf( |
|
| 110 | + $userGroupFormatter = static fn(UserGroup $userGroup): string => sprintf( |
|
| 111 | 111 | '%s (%s)', |
| 112 | 112 | $userGroup->getName(), |
| 113 | 113 | $userGroup->getRole()->getId() |
| 114 | 114 | ); |
| 115 | 115 | |
| 116 | - return fn (ApiKey $apiToken): array => [ |
|
| 116 | + return fn(ApiKey $apiToken): array => [ |
|
| 117 | 117 | $apiToken->getId(), |
| 118 | 118 | $apiToken->getToken(), |
| 119 | 119 | $apiToken->getDescription(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/AutoMapper/RestRequestMapper.php |
| 5 | 5 | * |
@@ -137,6 +137,6 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | private function getValidProperties(Request $request): array |
| 139 | 139 | { |
| 140 | - return array_filter(static::$properties, static fn ($property) => $request->request->has($property)); |
|
| 140 | + return array_filter(static::$properties, static fn($property) => $request->request->has($property)); |
|
| 141 | 141 | } |
| 142 | 142 | } |