@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | ->where('wife_name.n_type', '<>', '_MARNM'); |
127 | 127 | }); |
128 | 128 | |
129 | - $field = new Expression('COALESCE(' . DB::prefix('husb_name') . ".n_full, '') || COALESCE(" . DB::prefix('wife_name') . ".n_full, '')"); |
|
129 | + $field = new Expression('COALESCE(' . DB::prefix('husb_name') . ".n_full, '') || COALESCE(" . DB::prefix('wife_name') . ".n_full, '')"); |
|
130 | 130 | |
131 | 131 | $this->whereTrees($query, 'f_file', $trees); |
132 | 132 | $this->whereSearch($query, $field, $search); |
@@ -1068,7 +1068,7 @@ discard block |
||
1068 | 1068 | * @param Expression<string>|string $column |
1069 | 1069 | * @param array<string> $search_terms |
1070 | 1070 | */ |
1071 | - private function whereSearch(Builder $query, Expression|string $column, array $search_terms): void |
|
1071 | + private function whereSearch(Builder $query, Expression | string $column, array $search_terms): void |
|
1072 | 1072 | { |
1073 | 1073 | foreach ($search_terms as $search_term) { |
1074 | 1074 | $query->where($column, DB::iLike(), '%' . addcslashes($search_term, '\\%_') . '%'); |
@@ -323,7 +323,7 @@ |
||
323 | 323 | { |
324 | 324 | return Registry::cache()->file()->remember('whois-asn-' . $asn, function () use ($asn): array { |
325 | 325 | $ranges = $this->network_service->findIpRangesForAsn($asn); |
326 | - $mapper = static fn (string $range): RangeInterface|null => Factory::parseRangeString($range); |
|
326 | + $mapper = static fn (string $range): RangeInterface | null => Factory::parseRangeString($range); |
|
327 | 327 | $ranges = array_map($mapper, $ranges); |
328 | 328 | |
329 | 329 | return array_filter($ranges); |
@@ -115,7 +115,7 @@ |
||
115 | 115 | ->flatten(); |
116 | 116 | |
117 | 117 | // Don't show family meta-data tags |
118 | - $exclude_facts = new Collection(['FAM:CHAN', 'FAM:_UID', 'FAM:UID', 'FAM:SUBM']); |
|
118 | + $exclude_facts = new Collection(['FAM:CHAN', 'FAM:_UID', 'FAM:UID', 'FAM:SUBM']); |
|
119 | 119 | // Don't show tags that are shown in tabs or sidebars |
120 | 120 | $exclude_facts = $exclude_facts->merge($sidebar_facts)->merge($tab_facts); |
121 | 121 |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | string $line_endings, |
108 | 108 | string $filename, |
109 | 109 | string $format, |
110 | - Collection|null $records = null |
|
110 | + Collection | null $records = null |
|
111 | 111 | ): ResponseInterface { |
112 | 112 | $access_level = self::ACCESS_LEVELS[$privacy]; |
113 | 113 | |
@@ -177,9 +177,9 @@ discard block |
||
177 | 177 | string $encoding = UTF8::NAME, |
178 | 178 | int $access_level = Auth::PRIV_HIDE, |
179 | 179 | string $line_endings = 'CRLF', |
180 | - Collection|null $records = null, |
|
181 | - ZipArchive|FilesystemOperator|null $zip_filesystem = null, |
|
182 | - string|null $media_path = null |
|
180 | + Collection | null $records = null, |
|
181 | + ZipArchive | FilesystemOperator | null $zip_filesystem = null, |
|
182 | + string | null $media_path = null |
|
183 | 183 | ) { |
184 | 184 | $stream = fopen('php://memory', 'wb+'); |
185 | 185 |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | /** |
165 | 165 | * @param list<int> $parent_place_ids |
166 | 166 | */ |
167 | - public function deleteUnusedLocations(int|null $parent_location_id, array $parent_place_ids): void |
|
167 | + public function deleteUnusedLocations(int | null $parent_location_id, array $parent_place_ids): void |
|
168 | 168 | { |
169 | 169 | if ($parent_location_id === null) { |
170 | 170 | $location_query = DB::table('place_location') |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | * |
200 | 200 | * @return Collection<int,object{id:int,key:string,place:string,latitude:float|null,longitude:float|null,child_count:int,no_coord:int}> |
201 | 201 | */ |
202 | - public function getPlaceListLocation(int|null $parent_id): Collection |
|
202 | + public function getPlaceListLocation(int | null $parent_id): Collection |
|
203 | 203 | { |
204 | 204 | $expression = |
205 | 205 | DB::prefix('p1') . '.place IS NOT NULL AND ' . DB::prefix('p1') . '.latitude IS NULL OR ' . |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | 'child_count' => (int) $row->child_count, |
249 | 249 | 'no_coord' => (int) $row->no_coord, |
250 | 250 | ]) |
251 | - ->sort(static fn (object $x, object $y): int => I18N::comparator()($x->place, $y->place)); |
|
251 | + ->sort(static fn (object $x, object $y) : int => I18N::comparator()($x->place, $y->place)); |
|
252 | 252 | } |
253 | 253 | |
254 | 254 | public function writeLatitude(float $latitude): string |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | return self::pdo()->getAttribute(PDO::ATTR_DRIVER_NAME); |
177 | 177 | } |
178 | 178 | |
179 | - public static function exec(string $sql): int|false |
|
179 | + public static function exec(string $sql): int | false |
|
180 | 180 | { |
181 | 181 | return self::pdo()->exec($sql); |
182 | 182 | } |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | /** |
263 | 263 | * @return Expression<string> |
264 | 264 | */ |
265 | - public static function binaryColumn(string $column, string|null $alias = null): Expression |
|
265 | + public static function binaryColumn(string $column, string | null $alias = null): Expression |
|
266 | 266 | { |
267 | 267 | if (self::driverName() === self::MYSQL) { |
268 | 268 | $sql = 'CAST(' . $column . ' AS binary)'; |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | * @param list<string> $local_columns |
420 | 420 | * @param list<string> $foreign_columns |
421 | 421 | */ |
422 | - public static function foreignKey(array $local_columns, string $foreign_table, array|null $foreign_columns = null): ForeignKey |
|
422 | + public static function foreignKey(array $local_columns, string $foreign_table, array | null $foreign_columns = null): ForeignKey |
|
423 | 423 | { |
424 | 424 | return new ForeignKey( |
425 | 425 | local_columns: $local_columns, |