@@ -250,7 +250,7 @@ |
||
| 250 | 250 | 'child_count' => (int) $row->child_count, |
| 251 | 251 | 'no_coord' => (int) $row->no_coord, |
| 252 | 252 | ]) |
| 253 | - ->sort(static fn (object $x, object $y): int => I18N::comparator()($x->place, $y->place)); |
|
| 253 | + ->sort(static fn (object $x, object $y) : int => I18N::comparator()($x->place, $y->place)); |
|
| 254 | 254 | } |
| 255 | 255 | |
| 256 | 256 | public function writeLatitude(float $latitude): string |
@@ -807,7 +807,7 @@ discard block |
||
| 807 | 807 | ->orderBy('d_julianday1', $ascending ? 'ASC' : 'DESC') |
| 808 | 808 | ->limit(1) |
| 809 | 809 | ->get() |
| 810 | - ->map(static fn (object $row): object => (object) [ |
|
| 810 | + ->map(static fn (object $row) : object => (object) [ |
|
| 811 | 811 | 'id' => $row->id, |
| 812 | 812 | 'year' => (int) $row->year, |
| 813 | 813 | 'fact' => $row->fact, |
@@ -1146,7 +1146,7 @@ discard block |
||
| 1146 | 1146 | ->select(['individuals.*', new Expression(DB::prefix('death.d_julianday2') . ' - ' . DB::prefix('birth.d_julianday1') . ' AS days')]) |
| 1147 | 1147 | ->take(1) |
| 1148 | 1148 | ->get() |
| 1149 | - ->map(fn (object $row): object => (object) [ |
|
| 1149 | + ->map(fn (object $row) : object => (object) [ |
|
| 1150 | 1150 | 'individual' => Registry::individualFactory()->mapper($this->tree)($row), |
| 1151 | 1151 | 'days' => (int) $row->days |
| 1152 | 1152 | ]) |
@@ -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 | |
@@ -256,7 +256,7 @@ |
||
| 256 | 256 | } |
| 257 | 257 | } |
| 258 | 258 | |
| 259 | - $validated_bot = false; |
|
| 259 | + $validated_bot = false; |
|
| 260 | 260 | |
| 261 | 261 | foreach (self::ROBOT_REV_FWD_DNS as $robot => $valid_domains) { |
| 262 | 262 | if (str_contains($ua, $robot)) { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | use ModuleMapProviderTrait; |
| 40 | 40 | |
| 41 | 41 | // This list comes from https://image.maps.hereapi.com/mia/v3/languages?apiKey={YOUR_API_KEY} |
| 42 | - private const LANGUAGE_CODES = ["ar","as","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en","es","et","eu","fi","fo","fr","ga","gl","gn","gu","he","hi","hr","hu","hy","id","is","it","ja","ka","kk","km","kn","ko","ky","lt","lv","mk","ml","mr","ms","mt","my","nl","no","or","pa","pl","pt","ro","ru","sk","sl","sq","sr","sv","ta","te","th","tr","uk","uz","vi","zh","zh-Hant"]; |
|
| 42 | + private const LANGUAGE_CODES = ["ar", "as", "az", "be", "bg", "bn", "bs", "ca", "cs", "cy", "da", "de", "el", "en", "es", "et", "eu", "fi", "fo", "fr", "ga", "gl", "gn", "gu", "he", "hi", "hr", "hu", "hy", "id", "is", "it", "ja", "ka", "kk", "km", "kn", "ko", "ky", "lt", "lv", "mk", "ml", "mr", "ms", "mt", "my", "nl", "no", "or", "pa", "pl", "pt", "ro", "ru", "sk", "sl", "sq", "sr", "sv", "ta", "te", "th", "tr", "uk", "uz", "vi", "zh", "zh-Hant"]; |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * Name of the map provider. |