@@ -172,5 +172,5 @@ |
||
172 | 172 | * |
173 | 173 | * @return string |
174 | 174 | */ |
175 | - public function chartMedia(string|null $color_from = null, string|null $color_to = null): string; |
|
175 | + public function chartMedia(string | null $color_from = null, string | null $color_to = null): string; |
|
176 | 176 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * |
111 | 111 | * @return string |
112 | 112 | */ |
113 | - public function latestUserRegDate(string|null $format = null): string |
|
113 | + public function latestUserRegDate(string | null $format = null): string |
|
114 | 114 | { |
115 | 115 | $format ??= I18N::dateFormat(); |
116 | 116 | $user = $this->latestUserQuery(); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @return string |
126 | 126 | */ |
127 | - public function latestUserRegTime(string|null $format = null): string |
|
127 | + public function latestUserRegTime(string | null $format = null): string |
|
128 | 128 | { |
129 | 129 | $format ??= str_replace('%', '', I18N::timeFormat()); |
130 | 130 | $user = $this->latestUserQuery(); |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | * |
139 | 139 | * @return string |
140 | 140 | */ |
141 | - public function latestUserLoggedin(string|null $yes = null, string|null $no = null): string |
|
141 | + public function latestUserLoggedin(string | null $yes = null, string | null $no = null): string |
|
142 | 142 | { |
143 | 143 | $yes ??= I18N::translate('yes'); |
144 | 144 | $no ??= I18N::translate('no'); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * |
51 | 51 | * @return T |
52 | 52 | */ |
53 | - public function remember(string $key, Closure $closure, int|null $ttl = null) |
|
53 | + public function remember(string $key, Closure $closure, int | null $ttl = null) |
|
54 | 54 | { |
55 | 55 | return $this->cache->get(md5($key), static function (ItemInterface $item) use ($closure, $ttl) { |
56 | 56 | $item->expiresAfter($ttl); |
@@ -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::driverName() === 'mysql') { |
353 | 353 | $sql = 'CAST(' . $column . ' AS binary)'; |
@@ -297,7 +297,7 @@ |
||
297 | 297 | * |
298 | 298 | * @return Expression |
299 | 299 | */ |
300 | - private function binaryColumn(string $column, string|null $alias = null): Expression |
|
300 | + private function binaryColumn(string $column, string | null $alias = null): Expression |
|
301 | 301 | { |
302 | 302 | if (DB::driverName() === 'mysql') { |
303 | 303 | $sql = 'CAST(' . $column . ' AS binary)'; |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | $surname_initials = $this->surnameInitials($surname_data); |
217 | 217 | |
218 | 218 | // We've requested a surname that doesn't currently exist. |
219 | - if ($surname !== '' && !array_key_exists($surname, $all_surns)) { |
|
219 | + if ($surname !== '' && !array_key_exists($surname, $all_surns)) { |
|
220 | 220 | $message = I18N::translate('There are no individuals with the surname ā%sā', e($surname)); |
221 | 221 | FlashMessages::addMessage($message); |
222 | 222 | |
@@ -604,7 +604,7 @@ discard block |
||
604 | 604 | ->groupBy([$this->binaryColumn('n_givn')]); |
605 | 605 | |
606 | 606 | foreach ($query->get() as $row) { |
607 | - $initial = I18N::strtoupper(I18N::language()->initialLetter($row->n_givn)); |
|
607 | + $initial = I18N::strtoupper(I18N::language()->initialLetter($row->n_givn)); |
|
608 | 608 | $initials[$initial] ??= 0; |
609 | 609 | $initials[$initial] += (int) $row->count; |
610 | 610 | } |
@@ -832,7 +832,7 @@ discard block |
||
832 | 832 | * |
833 | 833 | * @return Expression |
834 | 834 | */ |
835 | - private function binaryColumn(string $column, string|null $alias = null): Expression |
|
835 | + private function binaryColumn(string $column, string | null $alias = null): Expression |
|
836 | 836 | { |
837 | 837 | if (DB::driverName() === 'mysql') { |
838 | 838 | $sql = 'CAST(' . $column . ' AS binary)'; |
@@ -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 |