@@ -114,7 +114,7 @@ |
||
| 114 | 114 | * |
| 115 | 115 | * @return ResponseInterface |
| 116 | 116 | */ |
| 117 | -function response(array|object|string $content = '', int $code = StatusCodeInterface::STATUS_OK, array $headers = []): ResponseInterface |
|
| 117 | +function response(array | object | string $content = '', int $code = StatusCodeInterface::STATUS_OK, array $headers = []): ResponseInterface |
|
| 118 | 118 | { |
| 119 | 119 | return Registry::responseFactory()->response($content, $code, $headers); |
| 120 | 120 | } |
@@ -301,7 +301,7 @@ |
||
| 301 | 301 | { |
| 302 | 302 | $latest_version = $this->fetchLatestVersion(false); |
| 303 | 303 | |
| 304 | - [, , $url] = explode('|', $latest_version . '||'); |
|
| 304 | + [,, $url] = explode('|', $latest_version . '||'); |
|
| 305 | 305 | |
| 306 | 306 | return $url; |
| 307 | 307 | } |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | |
| 115 | 115 | // Only update session once a minute to reduce contention on the session table. |
| 116 | 116 | if ($now->subtractMinutes(1)->timestamp() > Registry::timestampFactory()->fromString($this->row->session_time)->timestamp()) { |
| 117 | - $updates['session_time'] = $now->toDateTimeString(); |
|
| 117 | + $updates['session_time'] = $now->toDateTimeString(); |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | if ($updates !== []) { |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * |
| 33 | 33 | * @return string |
| 34 | 34 | */ |
| 35 | - public function autolink(string $markdown, Tree|null $tree = null): string; |
|
| 35 | + public function autolink(string $markdown, Tree | null $tree = null): string; |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * @param string $markdown |
@@ -40,5 +40,5 @@ discard block |
||
| 40 | 40 | * |
| 41 | 41 | * @return string |
| 42 | 42 | */ |
| 43 | - public function markdown(string $markdown, Tree|null $tree = null): string; |
|
| 43 | + public function markdown(string $markdown, Tree | null $tree = null): string; |
|
| 44 | 44 | } |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | * @param string $label |
| 79 | 79 | * @param array<string>|null $subtags |
| 80 | 80 | */ |
| 81 | - public function __construct(string $label, array|null $subtags = null) |
|
| 81 | + public function __construct(string $label, array | null $subtags = null) |
|
| 82 | 82 | { |
| 83 | 83 | $this->label = $label; |
| 84 | 84 | $this->subtags = $subtags ?? static::SUBTAGS; |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | * @param string $label |
| 90 | 90 | * @param array<string>|null $subtags |
| 91 | 91 | */ |
| 92 | - public function __construct(string $label, array|null $subtags = null) |
|
| 92 | + public function __construct(string $label, array | null $subtags = null) |
|
| 93 | 93 | { |
| 94 | 94 | if ($subtags === null && in_array(I18N::languageTag(), static::SURNAME_FIRST_LANGUAGES, true)) { |
| 95 | 95 | $subtags = static::SUBTAGS_SURNAME_FIRST; |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | /** |
| 31 | 31 | * @param string|null $message |
| 32 | 32 | */ |
| 33 | - public function __construct(string|null $message = null) |
|
| 33 | + public function __construct(string | null $message = null) |
|
| 34 | 34 | { |
| 35 | 35 | $message ??= I18N::translate('You do not have permission to view this page.'); |
| 36 | 36 | |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | /** |
| 31 | 31 | * @param string|null $message |
| 32 | 32 | */ |
| 33 | - public function __construct(string|null $message = null) |
|
| 33 | + public function __construct(string | null $message = null) |
|
| 34 | 34 | { |
| 35 | 35 | $message ??= I18N::translate('Too many requests. Try again later.'); |
| 36 | 36 | |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | /** |
| 31 | 31 | * @param string|null $message |
| 32 | 32 | */ |
| 33 | - public function __construct(string|null $message = null) |
|
| 33 | + public function __construct(string | null $message = null) |
|
| 34 | 34 | { |
| 35 | 35 | $message ??= I18N::translate('This page has been deleted.'); |
| 36 | 36 | |