Passed
Pull Request — main (#4000)
by Jonathan
07:03
created
app/Http/RequestHandlers/TreePreferencesPage.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -173,19 +173,19 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.