@@ -47,7 +47,7 @@ |
||
47 | 47 | */ |
48 | 48 | private function extractCitations(Fact $fact) |
49 | 49 | { |
50 | - $extract_regex = '/\n(2 SOUR @(' . Gedcom::REGEX_XREF . ')@(?:\n[3-9] .*)*)/'; |
|
50 | + $extract_regex = '/\n(2 SOUR @('.Gedcom::REGEX_XREF.')@(?:\n[3-9] .*)*)/'; |
|
51 | 51 | preg_match_all($extract_regex, $fact->gedcom(), $matches, PREG_SET_ORDER); |
52 | 52 | $citations = []; |
53 | 53 | foreach ($matches as $match) { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | ->withProperty( |
157 | 157 | 'places', |
158 | 158 | $feature_data->places() |
159 | - ->map(fn(GeoAnalysisPlace $place): string => $place->place()->firstParts(1)->first()) |
|
159 | + ->map(fn(GeoAnalysisPlace $place) : string => $place->place()->firstParts(1)->first()) |
|
160 | 160 | ->sort(I18N::comparator()) |
161 | 161 | ->toArray() |
162 | 162 | ); |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | ->each( |
171 | 171 | fn (MapFeatureAnalysisData $data) => |
172 | 172 | $data->places()->each( |
173 | - function (GeoAnalysisPlace $place) use ($result): void { |
|
173 | + function(GeoAnalysisPlace $place) use ($result): void { |
|
174 | 174 | $result->exclude($place); |
175 | 175 | } |
176 | 176 | ) |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | $features_mapping = new Collection(); |
191 | 191 | |
192 | 192 | $byplaces = $result->knownPlaces(); |
193 | - $byplaces->each(function (GeoAnalysisResultItem $item) use ($features_mapping, $result): void { |
|
193 | + $byplaces->each(function(GeoAnalysisResultItem $item) use ($features_mapping, $result): void { |
|
194 | 194 | $id = $this->place_mapper->map($item->place()->place(), $this->config->mapMappingProperty()); |
195 | 195 | |
196 | 196 | if ($id !== null && mb_strlen($id) > 0) { |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | } |
204 | 204 | }); |
205 | 205 | |
206 | - return [ $features_mapping, $result]; |
|
206 | + return [$features_mapping, $result]; |
|
207 | 207 | } |
208 | 208 | |
209 | 209 | /** |