@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Repository/BaseRepository.php |
5 | 5 | * |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | { |
170 | 170 | foreach (self::$joins as $joinType => $joins) { |
171 | 171 | array_map( |
172 | - static fn (array $joinParameters): QueryBuilder => $queryBuilder->{$joinType}(...$joinParameters), |
|
172 | + static fn(array $joinParameters): QueryBuilder => $queryBuilder->{$joinType}(...$joinParameters), |
|
173 | 173 | $joins, |
174 | 174 | ); |
175 | 175 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * /src/Repository/Interfaces/BaseRepositoryInterface.php |
5 | 5 | * |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * |
88 | 88 | * @throws NonUniqueResultException |
89 | 89 | */ |
90 | - public function findAdvanced(string $id, string | int | null $hydrationMode = null): null | array | EntityInterface; |
|
90 | + public function findAdvanced(string $id, string|int|null $hydrationMode = null): null|array|EntityInterface; |
|
91 | 91 | |
92 | 92 | /** |
93 | 93 | * Wrapper for default Doctrine repository findOneBy method. |
@@ -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/ResourceCollection.php |
5 | 5 | * |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | public function filter(string $className): Closure |
67 | 67 | { |
68 | - return static fn (RestResourceInterface $restResource): bool => $restResource instanceof $className; |
|
68 | + return static fn(RestResourceInterface $restResource): bool => $restResource instanceof $className; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | public function getErrorMessage(string $className): string |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | return null; |
87 | 87 | } |
88 | 88 | |
89 | - $callback = static fn (RestResourceInterface $resource): bool => $resource->getEntityName() === $entityName; |
|
89 | + $callback = static fn(RestResourceInterface $resource): bool => $resource->getEntityName() === $entityName; |
|
90 | 90 | |
91 | 91 | $filteredIterator = new CallbackFilterIterator(new IteratorIterator($iterator), $callback); |
92 | 92 | $filteredIterator->rewind(); |
@@ -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 | * |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | #[Groups([ |
124 | 124 | 'UserGroup.users', |
125 | 125 | ])] |
126 | - private Collection | ArrayCollection $users; |
|
126 | + private Collection|ArrayCollection $users; |
|
127 | 127 | |
128 | 128 | /** |
129 | 129 | * @var Collection<int, ApiKey>|ArrayCollection<int, ApiKey> |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | #[Groups([ |
140 | 140 | 'UserGroup.apiKeys', |
141 | 141 | ])] |
142 | - private Collection | ArrayCollection $apiKeys; |
|
142 | + private Collection|ArrayCollection $apiKeys; |
|
143 | 143 | |
144 | 144 | public function __construct() |
145 | 145 | { |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | /** |
187 | 187 | * @return Collection<int, User>|ArrayCollection<int, User> |
188 | 188 | */ |
189 | - public function getUsers(): Collection | ArrayCollection |
|
189 | + public function getUsers(): Collection|ArrayCollection |
|
190 | 190 | { |
191 | 191 | return $this->users; |
192 | 192 | } |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | /** |
195 | 195 | * @return Collection<int, ApiKey>|ArrayCollection<int, ApiKey> |
196 | 196 | */ |
197 | - public function getApiKeys(): Collection | ArrayCollection |
|
197 | + public function getApiKeys(): Collection|ArrayCollection |
|
198 | 198 | { |
199 | 199 | return $this->apiKeys; |
200 | 200 | } |
@@ -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/ApiKey/RequestMapper.php |
5 | 5 | * |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | protected function transformUserGroups(array $userGroups): array |
48 | 48 | { |
49 | 49 | return array_map( |
50 | - fn (string $userGroupUuid): UserGroup => $this->userGroupResource->getReference($userGroupUuid), |
|
50 | + fn(string $userGroupUuid): UserGroup => $this->userGroupResource->getReference($userGroupUuid), |
|
51 | 51 | $userGroups, |
52 | 52 | ); |
53 | 53 | } |
@@ -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/User/RequestMapper.php |
5 | 5 | * |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | protected function transformUserGroups(array $userGroups): array |
53 | 53 | { |
54 | 54 | return array_map( |
55 | - fn (string $userGroupUuid): UserGroup => $this->userGroupResource->getReference($userGroupUuid), |
|
55 | + fn(string $userGroupUuid): UserGroup => $this->userGroupResource->getReference($userGroupUuid), |
|
56 | 56 | $userGroups, |
57 | 57 | ); |
58 | 58 | } |
@@ -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/Traits/UserRelations.php |
5 | 5 | * |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | #[Groups([ |
41 | 41 | 'User.userGroups', |
42 | 42 | ])] |
43 | - protected Collection | ArrayCollection $userGroups; |
|
43 | + protected Collection|ArrayCollection $userGroups; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * @var Collection<int, LogRequest>|ArrayCollection<int, LogRequest> |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | #[Groups([ |
54 | 54 | 'User.logsRequest', |
55 | 55 | ])] |
56 | - protected Collection | ArrayCollection $logsRequest; |
|
56 | + protected Collection|ArrayCollection $logsRequest; |
|
57 | 57 | |
58 | 58 | /** |
59 | 59 | * @var Collection<int, LogLogin>|ArrayCollection<int, LogLogin> |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | #[Groups([ |
67 | 67 | 'User.logsLogin', |
68 | 68 | ])] |
69 | - protected Collection | ArrayCollection $logsLogin; |
|
69 | + protected Collection|ArrayCollection $logsLogin; |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @var Collection<int, LogLoginFailure>|ArrayCollection<int, LogLoginFailure> |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | #[Groups([ |
80 | 80 | 'User.logsLoginFailure', |
81 | 81 | ])] |
82 | - protected Collection | ArrayCollection $logsLoginFailure; |
|
82 | + protected Collection|ArrayCollection $logsLoginFailure; |
|
83 | 83 | |
84 | 84 | /** |
85 | 85 | * Getter for roles. |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | public function getRoles(): array |
101 | 101 | { |
102 | 102 | return $this->userGroups |
103 | - ->map(static fn (UserGroup $userGroup): string => $userGroup->getRole()->getId()) |
|
103 | + ->map(static fn(UserGroup $userGroup): string => $userGroup->getRole()->getId()) |
|
104 | 104 | ->toArray(); |
105 | 105 | } |
106 | 106 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * |
110 | 110 | * @return Collection<int, UserGroup>|ArrayCollection<int, UserGroup> |
111 | 111 | */ |
112 | - public function getUserGroups(): Collection | ArrayCollection |
|
112 | + public function getUserGroups(): Collection|ArrayCollection |
|
113 | 113 | { |
114 | 114 | return $this->userGroups; |
115 | 115 | } |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * |
120 | 120 | * @return Collection<int, LogRequest>|ArrayCollection<int, LogRequest> |
121 | 121 | */ |
122 | - public function getLogsRequest(): Collection | ArrayCollection |
|
122 | + public function getLogsRequest(): Collection|ArrayCollection |
|
123 | 123 | { |
124 | 124 | return $this->logsRequest; |
125 | 125 | } |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * |
130 | 130 | * @return Collection<int, LogLogin>|ArrayCollection<int, LogLogin> |
131 | 131 | */ |
132 | - public function getLogsLogin(): Collection | ArrayCollection |
|
132 | + public function getLogsLogin(): Collection|ArrayCollection |
|
133 | 133 | { |
134 | 134 | return $this->logsLogin; |
135 | 135 | } |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | * |
140 | 140 | * @return Collection<int, LogLoginFailure>|ArrayCollection<int, LogLoginFailure> |
141 | 141 | */ |
142 | - public function getLogsLoginFailure(): Collection | ArrayCollection |
|
142 | + public function getLogsLoginFailure(): Collection|ArrayCollection |
|
143 | 143 | { |
144 | 144 | return $this->logsLoginFailure; |
145 | 145 | } |
@@ -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($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 | * /src/Compiler/StopwatchCompilerPass.php |
5 | 5 | * |