@@ -173,19 +173,19 @@ |
||
173 | 173 | $ignore_facts = ['CHAN', 'CHIL', 'FAMC', 'FAMS', 'HUSB', 'NOTE', 'OBJE', 'SOUR', 'SUBM', 'WIFE']; |
174 | 174 | |
175 | 175 | $all_family_facts = Collection::make(Registry::elementFactory()->make('FAM')->subtags()) |
176 | - ->filter(static fn (string $value, string $key): bool => !in_array($key, $ignore_facts, true)) |
|
177 | - ->mapWithKeys(static fn (string $value, string $key): array => [$key => 'FAM:' . $key]) |
|
178 | - ->map(static fn (string $tag): ElementInterface => Registry::elementFactory()->make($tag)) |
|
179 | - ->filter(static fn (ElementInterface $element): bool => !$element instanceof UnknownElement) |
|
180 | - ->map(static fn (ElementInterface $element): string => $element->label()) |
|
176 | + ->filter(static fn(string $value, string $key): bool => !in_array($key, $ignore_facts, true)) |
|
177 | + ->mapWithKeys(static fn(string $value, string $key): array => [$key => 'FAM:' . $key]) |
|
178 | + ->map(static fn(string $tag): ElementInterface => Registry::elementFactory()->make($tag)) |
|
179 | + ->filter(static fn(ElementInterface $element): bool => !$element instanceof UnknownElement) |
|
180 | + ->map(static fn(ElementInterface $element): string => $element->label()) |
|
181 | 181 | ->sort(I18N::comparator()); |
182 | 182 | |
183 | 183 | $all_individual_facts = Collection::make(Registry::elementFactory()->make('INDI')->subtags()) |
184 | - ->filter(static fn (string $value, string $key): bool => !in_array($key, $ignore_facts, true)) |
|
185 | - ->mapWithKeys(static fn (string $value, string $key): array => [$key => 'INDI:' . $key]) |
|
186 | - ->map(static fn (string $tag): ElementInterface => Registry::elementFactory()->make($tag)) |
|
187 | - ->filter(static fn (ElementInterface $element): bool => !$element instanceof UnknownElement) |
|
188 | - ->map(static fn (ElementInterface $element): string => $element->label()) |
|
184 | + ->filter(static fn(string $value, string $key): bool => !in_array($key, $ignore_facts, true)) |
|
185 | + ->mapWithKeys(static fn(string $value, string $key): array => [$key => 'INDI:' . $key]) |
|
186 | + ->map(static fn(string $tag): ElementInterface => Registry::elementFactory()->make($tag)) |
|
187 | + ->filter(static fn(ElementInterface $element): bool => !$element instanceof UnknownElement) |
|
188 | + ->map(static fn(ElementInterface $element): string => $element->label()) |
|
189 | 189 | ->sort(I18N::comparator()); |
190 | 190 | |
191 | 191 | $all_surname_traditions = SurnameTradition::allDescriptions(); |
@@ -117,6 +117,6 @@ |
||
117 | 117 | */ |
118 | 118 | public function supportedFacts(): Collection |
119 | 119 | { |
120 | - return new Collection(array_map(fn (string $tag): string => 'INDI:' . $tag, static::HANDLED_FACTS)); |
|
120 | + return new Collection(array_map(fn(string $tag): string => 'INDI:' . $tag, static::HANDLED_FACTS)); |
|
121 | 121 | } |
122 | 122 | } |
@@ -202,7 +202,7 @@ |
||
202 | 202 | ->where('id', '=', $location->id) |
203 | 203 | ->delete(); |
204 | 204 | } else { |
205 | - $place_ids = $places->map(static fn (object $place): int => (int) $place->p_id)->all(); |
|
205 | + $place_ids = $places->map(static fn(object $place): int => (int) $place->p_id)->all(); |
|
206 | 206 | $this->deleteUnusedLocations((int) $location->id, $place_ids); |
207 | 207 | } |
208 | 208 | } |