@@ -33,7 +33,7 @@ |
||
| 33 | 33 | * @param array<TK, TVal>|Traversable<TK, TVal>|stdClass $data |
| 34 | 34 | * @return array<TK, TVal> |
| 35 | 35 | */ |
| 36 | - protected function parseObjects(array|object $data): array |
|
| 36 | + protected function parseObjects(array | object $data): array |
|
| 37 | 37 | { |
| 38 | 38 | if ($data instanceof Traversable) { |
| 39 | 39 | $data = iterator_to_array($data); |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * @param array<TK, TVal>|Traversable<TK, TVal>|string|int|object $array |
| 42 | 42 | * @return array<string, mixed>|string |
| 43 | 43 | */ |
| 44 | - private function parseDateTimeToString(mixed $array): array|string |
|
| 44 | + private function parseDateTimeToString(mixed $array): array | string |
|
| 45 | 45 | { |
| 46 | 46 | if (!is_array($array)) { |
| 47 | 47 | if ($array instanceof DateTime || interface_exists('DateTimeInterface') && $array instanceof DateTimeInterface) { |
@@ -132,8 +132,7 @@ |
||
| 132 | 132 | $action = Strings::firstLower($action); |
| 133 | 133 | |
| 134 | 134 | $pattern = $this->prefix ? |
| 135 | - $this->prefix . '/' . $mask : |
|
| 136 | - $mask; |
|
| 135 | + $this->prefix . '/' . $mask : $mask; |
|
| 137 | 136 | |
| 138 | 137 | $routeData[strval($pattern)][strval($requestMethod)] = $action; |
| 139 | 138 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | ]; |
| 32 | 32 | |
| 33 | 33 | public function __construct( |
| 34 | - private readonly Router|RouteList $router, |
|
| 34 | + private readonly Router | RouteList $router, |
|
| 35 | 35 | ) |
| 36 | 36 | { |
| 37 | 37 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | return null; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - public function getData(): iterable|stdClass|string |
|
| 22 | + public function getData(): iterable | stdClass | string |
|
| 23 | 23 | { |
| 24 | 24 | return ''; |
| 25 | 25 | } |
@@ -18,5 +18,5 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * @return iterable<string|int, mixed>|stdClass|string |
| 20 | 20 | */ |
| 21 | - public function getData(): iterable|stdClass|string; |
|
| 21 | + public function getData(): iterable | stdClass | string; |
|
| 22 | 22 | } |
@@ -17,13 +17,13 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * @var iterable<string|int, mixed>|stdClass |
| 19 | 19 | */ |
| 20 | - protected iterable|stdClass $data = []; |
|
| 20 | + protected iterable | stdClass $data = []; |
|
| 21 | 21 | |
| 22 | 22 | private bool $prettyPrint = true; |
| 23 | 23 | |
| 24 | 24 | public function __construct( |
| 25 | 25 | protected IMapper $mapper, |
| 26 | - protected readonly string|null $contentType = null, |
|
| 26 | + protected readonly string | null $contentType = null, |
|
| 27 | 27 | ) |
| 28 | 28 | { |
| 29 | 29 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * Get response data |
| 58 | 58 | * @return iterable<string|int, mixed>|stdClass|string |
| 59 | 59 | */ |
| 60 | - public function getData(): iterable|stdClass|string |
|
| 60 | + public function getData(): iterable | stdClass | string |
|
| 61 | 61 | { |
| 62 | 62 | return $this->data; |
| 63 | 63 | } |
@@ -54,4 +54,4 @@ |
||
| 54 | 54 | $this->response->send($httpRequest, $httpResponse); |
| 55 | 55 | } |
| 56 | 56 | } |
| 57 | - |
|
| 58 | 57 | \ No newline at end of file |
| 58 | + |
|
| 59 | 59 | \ No newline at end of file |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * Get response data |
| 25 | 25 | * @return iterable<string|int, mixed>|stdClass|string |
| 26 | 26 | */ |
| 27 | - public function getData(): iterable|stdClass|string |
|
| 27 | + public function getData(): iterable | stdClass | string |
|
| 28 | 28 | { |
| 29 | 29 | return $this->response->getData(); |
| 30 | 30 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | /** |
| 29 | 29 | * Get response data |
| 30 | 30 | */ |
| 31 | - public function getData(): iterable|stdClass|string |
|
| 31 | + public function getData(): iterable | stdClass | string |
|
| 32 | 32 | { |
| 33 | 33 | return $this->media->getContent(); |
| 34 | 34 | } |