@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | // phpcs:ignoreFile |
| 5 | 5 | namespace DoctrineMigrations; |
@@ -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/LogRequest.php |
| 5 | 5 | * |
@@ -118,24 +118,24 @@ discard block |
||
| 118 | 118 | ?Request $request = null, |
| 119 | 119 | ?Response $response = null, |
| 120 | 120 | #[ORM\ManyToOne( |
| 121 | - targetEntity: User::class, |
|
| 122 | - inversedBy: 'logsRequest', |
|
| 121 | + targetEntity : User::class, |
|
| 122 | + inversedBy : 'logsRequest', |
|
| 123 | 123 | )] |
| 124 | 124 | #[ORM\JoinColumn( |
| 125 | - name: 'user_id', |
|
| 126 | - onDelete: 'SET NULL', |
|
| 125 | + name : 'user_id', |
|
| 126 | + onDelete : 'SET NULL', |
|
| 127 | 127 | )] |
| 128 | 128 | #[Groups([ |
| 129 | 129 | 'LogRequest.user', |
| 130 | 130 | ])] |
| 131 | 131 | private ?User $user = null, |
| 132 | 132 | #[ORM\ManyToOne( |
| 133 | - targetEntity: ApiKey::class, |
|
| 134 | - inversedBy: 'logsRequest', |
|
| 133 | + targetEntity : ApiKey::class, |
|
| 134 | + inversedBy : 'logsRequest', |
|
| 135 | 135 | )] |
| 136 | 136 | #[ORM\JoinColumn( |
| 137 | - name: 'api_key_id', |
|
| 138 | - onDelete: 'SET NULL', |
|
| 137 | + name : 'api_key_id', |
|
| 138 | + onDelete : 'SET NULL', |
|
| 139 | 139 | )] |
| 140 | 140 | #[Groups([ |
| 141 | 141 | 'LogRequest.apiKey', |
@@ -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 | * |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | #[Groups([ |
| 114 | 114 | 'ApiKey.userGroups', |
| 115 | 115 | ])] |
| 116 | - private Collection | ArrayCollection $userGroups; |
|
| 116 | + private Collection|ArrayCollection $userGroups; |
|
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | 119 | * @var Collection<int, LogRequest>|ArrayCollection<int, LogRequest> |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | #[Groups([ |
| 126 | 126 | 'ApiKey.logsRequest', |
| 127 | 127 | ])] |
| 128 | - private Collection | ArrayCollection $logsRequest; |
|
| 128 | + private Collection|ArrayCollection $logsRequest; |
|
| 129 | 129 | |
| 130 | 130 | /** |
| 131 | 131 | * ApiKey constructor. |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | * |
| 192 | 192 | * @return Collection<int, UserGroup>|ArrayCollection<int, UserGroup> |
| 193 | 193 | */ |
| 194 | - public function getUserGroups(): Collection | ArrayCollection |
|
| 194 | + public function getUserGroups(): Collection|ArrayCollection |
|
| 195 | 195 | { |
| 196 | 196 | return $this->userGroups; |
| 197 | 197 | } |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * |
| 202 | 202 | * @return Collection<int, LogRequest>|ArrayCollection<int, LogRequest> |
| 203 | 203 | */ |
| 204 | - public function getLogsRequest(): Collection | ArrayCollection |
|
| 204 | + public function getLogsRequest(): Collection|ArrayCollection |
|
| 205 | 205 | { |
| 206 | 206 | return $this->logsRequest; |
| 207 | 207 | } |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | array_merge( |
| 224 | 224 | [RolesServiceInterface::ROLE_API], |
| 225 | 225 | $this->userGroups |
| 226 | - ->map(static fn (UserGroup $userGroup): string => $userGroup->getRole()->getId()) |
|
| 226 | + ->map(static fn(UserGroup $userGroup): string => $userGroup->getRole()->getId()) |
|
| 227 | 227 | ->toArray(), |
| 228 | 228 | ), |
| 229 | 229 | ), |