@@ -5,9 +5,9 @@ |
||
5 | 5 | use Symfony\Component\ErrorHandler\Debug; |
6 | 6 | use Symfony\Component\HttpFoundation\Request; |
7 | 7 | |
8 | -require dirname(__DIR__).'/vendor/autoload.php'; |
|
8 | +require dirname(__DIR__) . '/vendor/autoload.php'; |
|
9 | 9 | |
10 | -(new Dotenv())->bootEnv(dirname(__DIR__).'/.env'); |
|
10 | +(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env'); |
|
11 | 11 | |
12 | 12 | if ($_SERVER['APP_DEBUG']) { |
13 | 13 | umask(0000); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | use Symplify\EasyCodingStandard\ValueObject\Set\SetList; |
24 | 24 | use Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer; |
25 | 25 | |
26 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
26 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
27 | 27 | $parameters = $containerConfigurator->parameters(); |
28 | 28 | $parameters->set(Option::SETS, [ |
29 | 29 | SetList::CLEAN_CODE, |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) { |
|
4 | - require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php'; |
|
3 | +if (file_exists(dirname(__DIR__) . '/var/cache/prod/App_KernelProdContainer.preload.php')) { |
|
4 | + require dirname(__DIR__) . '/var/cache/prod/App_KernelProdContainer.preload.php'; |
|
5 | 5 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | { |
50 | 50 | $ipAddress = $this->request->getCurrentRequest() |
51 | 51 | ->getClientIp(); |
52 | - $this->logger->error('Authentication failed for IP: '.$ipAddress); |
|
52 | + $this->logger->error('Authentication failed for IP: ' . $ipAddress); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | public static function getSubscribedEvents(): array |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | throw new RuntimeException('This controller only works only for Part-DB User objects!'); |
149 | 149 | } |
150 | 150 | |
151 | - if ($this->isCsrfTokenValid('regenerate_backup_codes'.$user->getId(), $request->request->get('_token'))) { |
|
151 | + if ($this->isCsrfTokenValid('regenerate_backup_codes' . $user->getId(), $request->request->get('_token'))) { |
|
152 | 152 | $backupCodeManager->regenerateBackupCodes($user); |
153 | 153 | $entityManager->flush(); |
154 | 154 | $this->addFlash('success', 'user.settings.2fa.backup_codes.regenerated'); |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | throw new RuntimeException('This controller only works only for Part-DB User objects!'); |
176 | 176 | } |
177 | 177 | |
178 | - if ($this->isCsrfTokenValid('devices_reset'.$user->getId(), $request->request->get('_token'))) { |
|
178 | + if ($this->isCsrfTokenValid('devices_reset' . $user->getId(), $request->request->get('_token'))) { |
|
179 | 179 | $user->invalidateTrustedDevices(); |
180 | 180 | $entityManager->flush(); |
181 | 181 | $this->addFlash('success', 'tfa_trustedDevice.invalidate.success'); |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | return $this->getFirstName(); |
312 | 312 | } |
313 | 313 | |
314 | - return $this->getFirstName().' '.$this->getLastName(); |
|
314 | + return $this->getFirstName() . ' ' . $this->getLastName(); |
|
315 | 315 | } |
316 | 316 | |
317 | 317 | /** |
@@ -460,6 +460,6 @@ discard block |
||
460 | 460 | |
461 | 461 | public function __toString(): string |
462 | 462 | { |
463 | - return $this->getFullName().' ('.$this->username.')'; |
|
463 | + return $this->getFullName() . ' (' . $this->username . ')'; |
|
464 | 464 | } |
465 | 465 | } |
@@ -267,7 +267,7 @@ |
||
267 | 267 | return $this->getFirstName(); |
268 | 268 | } |
269 | 269 | |
270 | - return $this->getFirstName().' '.$this->getLastName(); |
|
270 | + return $this->getFirstName() . ' ' . $this->getLastName(); |
|
271 | 271 | } |
272 | 272 | |
273 | 273 | /** |
@@ -270,6 +270,6 @@ |
||
270 | 270 | */ |
271 | 271 | public function getAddress(): string |
272 | 272 | { |
273 | - return $this->getStreet().', '.$this->getZipCode().' '.$this->getCity(); |
|
273 | + return $this->getStreet() . ', ' . $this->getZipCode() . ' ' . $this->getCity(); |
|
274 | 274 | } |
275 | 275 | } |
@@ -210,6 +210,6 @@ |
||
210 | 210 | */ |
211 | 211 | public function __toString(): string |
212 | 212 | { |
213 | - return ($this->name ?? 'unknown').' ['.$this->iban.']'; |
|
213 | + return ($this->name ?? 'unknown') . ' [' . $this->iban . ']'; |
|
214 | 214 | } |
215 | 215 | } |