@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Rest/RequestHandler.php |
| 5 | 5 | * |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | (string)($request->query->get('where') ?? $request->request->get('where', '{}')), |
| 70 | 70 | true |
| 71 | 71 | ), |
| 72 | - static fn ($value): bool => $value !== null, |
|
| 72 | + static fn($value): bool => $value !== null, |
|
| 73 | 73 | ); |
| 74 | 74 | } catch (JsonException $error) { |
| 75 | 75 | throw new HttpException( |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | $searchTerms = JSON::decode($search, true); |
| 217 | 217 | |
| 218 | 218 | self::checkSearchTerms($searchTerms); |
| 219 | - } catch (JsonException | LogicException) { |
|
| 219 | + } catch (JsonException|LogicException) { |
|
| 220 | 220 | $searchTerms = null; |
| 221 | 221 | } |
| 222 | 222 | |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | private static function normalizeSearchTerms(array $searchTerms): array |
| 253 | 253 | { |
| 254 | 254 | // Normalize user input, note that this support array and string formats on value |
| 255 | - array_walk($searchTerms, static fn (array $terms): array => array_unique(array_values(array_filter($terms)))); |
|
| 255 | + array_walk($searchTerms, static fn(array $terms): array => array_unique(array_values(array_filter($terms)))); |
|
| 256 | 256 | |
| 257 | 257 | return $searchTerms; |
| 258 | 258 | } |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | */ |
| 263 | 263 | private static function getIterator(array &$output): Closure |
| 264 | 264 | { |
| 265 | - return static function (string $value, string | int $key) use (&$output): void { |
|
| 265 | + return static function (string $value, string|int $key) use (&$output): void { |
|
| 266 | 266 | $order = in_array(mb_strtoupper($value), ['ASC', 'DESC'], true) ? mb_strtoupper($value) : 'ASC'; |
| 267 | 267 | $column = is_string($key) ? $key : $value; |
| 268 | 268 | |
@@ -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/LogRequestProcessRequestTrait.php |
| 5 | 5 | * |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | // Clean possible sensitive data from parameters |
| 325 | 325 | array_walk( |
| 326 | 326 | $rawParameters, |
| 327 | - fn (mixed &$value, string $key) => $this->cleanParameters($value, $key), |
|
| 327 | + fn(mixed &$value, string $key) => $this->cleanParameters($value, $key), |
|
| 328 | 328 | ); |
| 329 | 329 | |
| 330 | 330 | $this->parameters = $rawParameters; |
@@ -402,7 +402,7 @@ discard block |
||
| 402 | 402 | if (is_array($value)) { |
| 403 | 403 | array_walk( |
| 404 | 404 | $value, |
| 405 | - fn (mixed &$value, string $key) => $this->cleanParameters($value, $key), |
|
| 405 | + fn(mixed &$value, string $key) => $this->cleanParameters($value, $key), |
|
| 406 | 406 | ); |
| 407 | 407 | } |
| 408 | 408 | } |
@@ -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/UserTypeIdentification.php |
| 5 | 5 | * |
@@ -88,10 +88,10 @@ discard block |
||
| 88 | 88 | * object implementing a __toString method, or the username as a regular |
| 89 | 89 | * string. |
| 90 | 90 | */ |
| 91 | - private function getUserToken(): UserInterface | null |
|
| 91 | + private function getUserToken(): UserInterface|null |
|
| 92 | 92 | { |
| 93 | 93 | $token = $this->tokenStorage->getToken(); |
| 94 | 94 | |
| 95 | - return $token?->getUser(); |
|
| 95 | + return $token ? ->getUser(); |
|
| 96 | 96 | } |
| 97 | 97 | } |