@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Entity/Role.php |
| 5 | 5 | * |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * mappedBy="role", |
| 86 | 86 | * ) |
| 87 | 87 | */ |
| 88 | - private Collection | ArrayCollection $userGroups; |
|
| 88 | + private Collection|ArrayCollection $userGroups; |
|
| 89 | 89 | |
| 90 | 90 | public function __construct(string $role) |
| 91 | 91 | { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | /** |
| 114 | 114 | * @return Collection<int, UserGroup>|ArrayCollection<int, UserGroup> |
| 115 | 115 | */ |
| 116 | - public function getUserGroups(): Collection | ArrayCollection |
|
| 116 | + public function getUserGroups(): Collection|ArrayCollection |
|
| 117 | 117 | { |
| 118 | 118 | return $this->userGroups; |
| 119 | 119 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Entity/Interfaces/UserGroupAwareInterface.php |
| 5 | 5 | * |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | /** |
| 24 | 24 | * @return Collection<int, UserGroup>|ArrayCollection<int, UserGroup> |
| 25 | 25 | */ |
| 26 | - public function getUserGroups(): Collection | ArrayCollection; |
|
| 26 | + public function getUserGroups(): Collection|ArrayCollection; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * Method to attach new userGroup to current user OR api key. |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Entity/UserGroup.php |
| 5 | 5 | * |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * name="user_has_user_group", |
| 130 | 130 | * ) |
| 131 | 131 | */ |
| 132 | - private Collection | ArrayCollection $users; |
|
| 132 | + private Collection|ArrayCollection $users; |
|
| 133 | 133 | |
| 134 | 134 | /** |
| 135 | 135 | * @var Collection<int, ApiKey>|ArrayCollection<int, ApiKey> |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | * name="api_key_has_user_group", |
| 147 | 147 | * ) |
| 148 | 148 | */ |
| 149 | - private Collection | ArrayCollection $apiKeys; |
|
| 149 | + private Collection|ArrayCollection $apiKeys; |
|
| 150 | 150 | |
| 151 | 151 | public function __construct() |
| 152 | 152 | { |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | /** |
| 194 | 194 | * @return Collection<int, User>|ArrayCollection<int, User> |
| 195 | 195 | */ |
| 196 | - public function getUsers(): Collection | ArrayCollection |
|
| 196 | + public function getUsers(): Collection|ArrayCollection |
|
| 197 | 197 | { |
| 198 | 198 | return $this->users; |
| 199 | 199 | } |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | /** |
| 202 | 202 | * @return Collection<int, ApiKey>|ArrayCollection<int, ApiKey> |
| 203 | 203 | */ |
| 204 | - public function getApiKeys(): Collection | ArrayCollection |
|
| 204 | + public function getApiKeys(): Collection|ArrayCollection |
|
| 205 | 205 | { |
| 206 | 206 | return $this->apiKeys; |
| 207 | 207 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Entity/DateDimension.php |
| 5 | 5 | * |
@@ -327,6 +327,6 @@ discard block |
||
| 327 | 327 | { |
| 328 | 328 | $output = DateTimeImmutable::createFromFormat('U', (string)$this->getUnixTime(), new DateTimeZone('UTC')); |
| 329 | 329 | |
| 330 | - return $output === false ? new DateTimeImmutable(timezone: new DateTimeZone('UTC')) : $output; |
|
| 330 | + return $output === false ? new DateTimeImmutable(timezone : new DateTimeZone('UTC')) : $output; |
|
| 331 | 331 | } |
| 332 | 332 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Entity/ApiKey.php |
| 5 | 5 | * |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | * name="api_key_has_user_group", |
| 123 | 123 | * ) |
| 124 | 124 | */ |
| 125 | - private Collection | ArrayCollection $userGroups; |
|
| 125 | + private Collection|ArrayCollection $userGroups; |
|
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | 128 | * @var Collection<int, LogRequest>|ArrayCollection<int, LogRequest> |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | * mappedBy="apiKey", |
| 137 | 137 | * ) |
| 138 | 138 | */ |
| 139 | - private Collection | ArrayCollection $logsRequest; |
|
| 139 | + private Collection|ArrayCollection $logsRequest; |
|
| 140 | 140 | |
| 141 | 141 | /** |
| 142 | 142 | * ApiKey constructor. |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | * |
| 203 | 203 | * @return Collection<int, UserGroup>|ArrayCollection<int, UserGroup> |
| 204 | 204 | */ |
| 205 | - public function getUserGroups(): Collection | ArrayCollection |
|
| 205 | + public function getUserGroups(): Collection|ArrayCollection |
|
| 206 | 206 | { |
| 207 | 207 | return $this->userGroups; |
| 208 | 208 | } |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | * |
| 213 | 213 | * @return Collection<int, LogRequest>|ArrayCollection<int, LogRequest> |
| 214 | 214 | */ |
| 215 | - public function getLogsRequest(): Collection | ArrayCollection |
|
| 215 | + public function getLogsRequest(): Collection|ArrayCollection |
|
| 216 | 216 | { |
| 217 | 217 | return $this->logsRequest; |
| 218 | 218 | } |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | array_merge( |
| 236 | 236 | [RolesService::ROLE_API], |
| 237 | 237 | $this->userGroups |
| 238 | - ->map(static fn (UserGroup $userGroup): string => $userGroup->getRole()->getId()) |
|
| 238 | + ->map(static fn(UserGroup $userGroup): string => $userGroup->getRole()->getId()) |
|
| 239 | 239 | ->toArray(), |
| 240 | 240 | ), |
| 241 | 241 | ), |
@@ -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/RequestLogSubscriber.php |
| 5 | 5 | * |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $request = $event->getRequest(); |
| 70 | 70 | $path = $request->getPathInfo(); |
| 71 | 71 | |
| 72 | - $filter = static fn (string $route): bool => |
|
| 72 | + $filter = static fn(string $route): bool => |
|
| 73 | 73 | str_contains($route, '/*') && str_contains($path, substr($route, 0, -2)); |
| 74 | 74 | |
| 75 | 75 | // We don't want to log OPTIONS requests, /_profiler* -path, ignored routes and wildcard ignored routes |
@@ -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 | * |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | { |
| 47 | 47 | return is_array($value) |
| 48 | 48 | ? array_map( |
| 49 | - static fn (UserGroup | Stringable $userGroup): string => |
|
| 49 | + static fn(UserGroup|Stringable $userGroup) : string => |
|
| 50 | 50 | $userGroup instanceof UserGroup ? $userGroup->getId() : (string)$userGroup, |
| 51 | 51 | $value, |
| 52 | 52 | ) |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | { |
| 69 | 69 | return is_array($value) |
| 70 | 70 | ? array_map( |
| 71 | - fn (string $groupId): UserGroup => $this->resource->findOne($groupId, false) ?? |
|
| 71 | + fn(string $groupId) : UserGroup => $this->resource->findOne($groupId, false) ?? |
|
| 72 | 72 | throw new TransformationFailedException( |
| 73 | 73 | sprintf('User group with id "%s" does not exist!', $groupId), |
| 74 | 74 | ), |
@@ -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 | * |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | /** |
| 88 | 88 | * @throws Throwable |
| 89 | 89 | */ |
| 90 | - private function getUser(string | object $user): ?User |
|
| 90 | + private function getUser(string|object $user): ?User |
|
| 91 | 91 | { |
| 92 | 92 | $output = null; |
| 93 | 93 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Exception/models/ValidatorError.php |
| 5 | 5 | * |
@@ -20,10 +20,10 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | class ValidatorError |
| 22 | 22 | { |
| 23 | - public string | Stringable $message; |
|
| 23 | + public string|Stringable $message; |
|
| 24 | 24 | public string $propertyPath; |
| 25 | 25 | public string $target; |
| 26 | - public string | null $code; |
|
| 26 | + public string|null $code; |
|
| 27 | 27 | |
| 28 | 28 | public function __construct(ConstraintViolationInterface $error, string $target) |
| 29 | 29 | { |