@@ -1069,7 +1069,7 @@ |
||
1069 | 1069 | * @param Expression|string $column |
1070 | 1070 | * @param array<string> $search_terms |
1071 | 1071 | */ |
1072 | - private function whereSearch(Builder $query, Expression|string $column, array $search_terms): void |
|
1072 | + private function whereSearch(Builder $query, Expression | string $column, array $search_terms): void |
|
1073 | 1073 | { |
1074 | 1074 | foreach ($search_terms as $search_term) { |
1075 | 1075 | $query->where($column, DB::iLike(), '%' . addcslashes($search_term, '\\%_') . '%'); |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | return self::pdo()->getAttribute(PDO::ATTR_DRIVER_NAME); |
141 | 141 | } |
142 | 142 | |
143 | - public static function exec(string $sql): int|false |
|
143 | + public static function exec(string $sql): int | false |
|
144 | 144 | { |
145 | 145 | return self::pdo()->exec($sql); |
146 | 146 | } |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | } |
206 | 206 | } |
207 | 207 | |
208 | - public static function binaryColumn(string $column, string|null $alias = null): Expression |
|
208 | + public static function binaryColumn(string $column, string | null $alias = null): Expression |
|
209 | 209 | { |
210 | 210 | if (self::driverName() === self::MYSQL) { |
211 | 211 | $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([DB::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 | } |
@@ -37,9 +37,9 @@ discard block |
||
37 | 37 | private bool $unsigned = false, |
38 | 38 | private bool $fixed = false, |
39 | 39 | private bool $nullable = false, |
40 | - private float|int|string|null $default = null, |
|
40 | + private float | int | string | null $default = null, |
|
41 | 41 | private bool $autoincrement = false, |
42 | - private string|null $collation = null, |
|
42 | + private string | null $collation = null, |
|
43 | 43 | ) { |
44 | 44 | } |
45 | 45 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | ); |
61 | 61 | } |
62 | 62 | |
63 | - public function default(float|int|string $default): self |
|
63 | + public function default(float | int | string $default): self |
|
64 | 64 | { |
65 | 65 | return new self( |
66 | 66 | name: $this->name, |