@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * |
81 | 81 | * @param array<string>|int|AbstractCalendarDate $date |
82 | 82 | */ |
83 | - protected function __construct(array|int|AbstractCalendarDate $date) |
|
83 | + protected function __construct(array | int | AbstractCalendarDate $date) |
|
84 | 84 | { |
85 | 85 | // Construct from an integer (a julian day number) |
86 | 86 | if (is_int($date)) { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | $this->month = static::MONTH_TO_NUMBER[$date[1]] ?? 0; |
98 | 98 | |
99 | 99 | if ($this->month === 0) { |
100 | - $this->day = 0; |
|
100 | + $this->day = 0; |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | $this->year = $this->extractYear($date[0]); |
@@ -269,7 +269,7 @@ |
||
269 | 269 | * |
270 | 270 | * @return string |
271 | 271 | */ |
272 | - public static function digits(string|int $n): string |
|
272 | + public static function digits(string | int $n): string |
|
273 | 273 | { |
274 | 274 | return self::$locale->digits((string) $n); |
275 | 275 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * |
54 | 54 | * @return ResponseInterface |
55 | 55 | */ |
56 | - public function redirectUrl(UriInterface|string $url, int $code = StatusCodeInterface::STATUS_FOUND): ResponseInterface; |
|
56 | + public function redirectUrl(UriInterface | string $url, int $code = StatusCodeInterface::STATUS_FOUND): ResponseInterface; |
|
57 | 57 | |
58 | 58 | /** |
59 | 59 | * @param string|array<mixed>|object $content |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @return ResponseInterface |
64 | 64 | */ |
65 | - public function response(string|array|object $content = '', int $code = StatusCodeInterface::STATUS_OK, array $headers = []): ResponseInterface; |
|
65 | + public function response(string | array | object $content = '', int $code = StatusCodeInterface::STATUS_OK, array $headers = []): ResponseInterface; |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Create and render a view, and embed it in an HTML page. |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * |
86 | 86 | * @return ResponseInterface |
87 | 87 | */ |
88 | - public function redirectUrl(UriInterface|string $url, int $code = StatusCodeInterface::STATUS_FOUND): ResponseInterface |
|
88 | + public function redirectUrl(UriInterface | string $url, int $code = StatusCodeInterface::STATUS_FOUND): ResponseInterface |
|
89 | 89 | { |
90 | 90 | return $this->response_factory |
91 | 91 | ->createResponse($code) |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * |
100 | 100 | * @return ResponseInterface |
101 | 101 | */ |
102 | - public function response(string|array|object $content = '', int $code = StatusCodeInterface::STATUS_OK, array $headers = []): ResponseInterface |
|
102 | + public function response(string | array | object $content = '', int $code = StatusCodeInterface::STATUS_OK, array $headers = []): ResponseInterface |
|
103 | 103 | { |
104 | 104 | if ($content === '' && $code === StatusCodeInterface::STATUS_OK) { |
105 | 105 | $code = StatusCodeInterface::STATUS_NO_CONTENT; |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | if (is_string($content)) { |
109 | 109 | $headers['content-type'] ??= 'text/html; charset=UTF-8'; |
110 | 110 | } else { |
111 | - $content = json_encode($content, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE); |
|
111 | + $content = json_encode($content, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE); |
|
112 | 112 | $headers['content-type'] ??= 'application/json'; |
113 | 113 | } |
114 | 114 |