@@ -75,7 +75,7 @@ |
||
75 | 75 | /** |
76 | 76 | * Get the first media file that contains an image. |
77 | 77 | */ |
78 | - public function firstImageFile(): MediaFile|null |
|
78 | + public function firstImageFile(): MediaFile | null |
|
79 | 79 | { |
80 | 80 | return $this->mediaFiles() |
81 | 81 | ->first(static fn (MediaFile $media_file): bool => $media_file->isImage() && !$media_file->isExternal()); |
@@ -97,7 +97,7 @@ |
||
97 | 97 | { |
98 | 98 | return $individual->spouseFamilies() |
99 | 99 | // Exclude families that were created after this census date |
100 | - ->filter(fn (Family $family): bool => Date::compare($family->getMarriageDate(), $this->date()) <= 0) |
|
100 | + ->filter(fn (Family $family) : bool => Date::compare($family->getMarriageDate(), $this->date()) <= 0) |
|
101 | 101 | ->sort(Family::marriageDateComparator()) |
102 | 102 | ->last(); |
103 | 103 | } |
@@ -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::caseInsensitiveLikeOperator(), '%' . addcslashes($search_term, '\\%_') . '%'); |
@@ -342,7 +342,7 @@ |
||
342 | 342 | * This module assumes the database will use binary collation on the name columns. |
343 | 343 | * Until we convert MySQL databases to use utf8_bin, we need to do this at run-time. |
344 | 344 | */ |
345 | - private function binaryColumn(string $column, string|null $alias = null): Expression |
|
345 | + private function binaryColumn(string $column, string | null $alias = null): Expression |
|
346 | 346 | { |
347 | 347 | if (DB::driverName() === 'mysql') { |
348 | 348 | $sql = 'CAST(' . $column . ' AS binary)'; |
@@ -342,7 +342,7 @@ |
||
342 | 342 | * This module assumes the database will use binary collation on the name columns. |
343 | 343 | * Until we convert MySQL databases to use utf8_bin, we need to do this at run-time. |
344 | 344 | */ |
345 | - private function binaryColumn(string $column, string|null $alias = null): Expression |
|
345 | + private function binaryColumn(string $column, string | null $alias = null): Expression |
|
346 | 346 | { |
347 | 347 | if (DB::driverName() === 'mysql') { |
348 | 348 | $sql = 'CAST(' . $column . ' AS binary)'; |