@@ -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 | |
@@ -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('The server could not understand this request.'); |
| 36 | 36 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * |
| 56 | 56 | * @return void |
| 57 | 57 | */ |
| 58 | - private static function addLog(string $message, string $log_type, Tree|null $tree = null): void |
|
| 58 | + private static function addLog(string $message, string $log_type, Tree | null $tree = null): void |
|
| 59 | 59 | { |
| 60 | 60 | if (Registry::container()->has(ServerRequestInterface::class)) { |
| 61 | 61 | $request = Registry::container()->get(ServerRequestInterface::class); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | * |
| 82 | 82 | * @return void |
| 83 | 83 | */ |
| 84 | - public static function addConfigurationLog(string $message, Tree|null $tree = null): void |
|
| 84 | + public static function addConfigurationLog(string $message, Tree | null $tree = null): void |
|
| 85 | 85 | { |
| 86 | 86 | self::addLog($message, self::TYPE_CONFIGURATION, $tree); |
| 87 | 87 | } |
@@ -347,7 +347,7 @@ |
||
| 347 | 347 | * |
| 348 | 348 | * @return Expression |
| 349 | 349 | */ |
| 350 | - private function binaryColumn(string $column, string|null $alias = null): Expression |
|
| 350 | + private function binaryColumn(string $column, string | null $alias = null): Expression |
|
| 351 | 351 | { |
| 352 | 352 | if (DB::connection()->getDriverName() === 'mysql') { |
| 353 | 353 | $sql = 'CAST(' . $column . ' AS binary)'; |