@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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; |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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), |