@@ -74,14 +74,14 @@ |
||
| 74 | 74 | |
| 75 | 75 | return $query_individuals->unionAll($query_families) |
| 76 | 76 | ->get()->pluck('g_gedcom') |
| 77 | - ->flatMap(static function (string $gedcom): array { |
|
| 77 | + ->flatMap(static function(string $gedcom): array { |
|
| 78 | 78 | preg_match_all('/\n2 PLAC (.+)/', $gedcom, $matches); |
| 79 | 79 | return $matches[1] ?? []; |
| 80 | 80 | }) |
| 81 | 81 | ->sort(I18N::comparator())->reverse() |
| 82 | - ->mapWithKeys(static function (string $place): array { |
|
| 82 | + ->mapWithKeys(static function(string $place): array { |
|
| 83 | 83 | $place_array = array_reverse(array_filter(array_map('trim', explode(",", $place)))); |
| 84 | - return [ count($place_array) => $place_array ]; |
|
| 84 | + return [count($place_array) => $place_array]; |
|
| 85 | 85 | }) |
| 86 | 86 | ->sortKeys() |
| 87 | 87 | ->last() ?? []; |