Passed
Pull Request — main (#4019)
by Jonathan
06:48
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.
app/Module/IndividualMetadataModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,6 +117,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.