@@ -72,7 +72,7 @@ |
||
72 | 72 | $spouse = $family->spouses()->first(); |
73 | 73 | assert($spouse instanceof Individual); |
74 | 74 | $names = $surname_tradition->newSpouseNames($spouse, $sex); |
75 | - $name_facts = array_map(fn (string $gedcom): Fact => new Fact($gedcom, $dummyi, ''), $names); |
|
75 | + $name_facts = array_map(fn(string $gedcom): Fact => new Fact($gedcom, $dummyi, ''), $names); |
|
76 | 76 | |
77 | 77 | $facts = [ |
78 | 78 | 'i' => [ |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | $parts = array_filter($parts); |
125 | 125 | |
126 | 126 | $parts = array_map( |
127 | - fn (string $tag, string $value): string => "\n2 " . $tag . ' ' . $value, |
|
127 | + fn(string $tag, string $value): string => "\n2 " . $tag . ' ' . $value, |
|
128 | 128 | array_keys($parts), |
129 | 129 | $parts |
130 | 130 | ); |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | if ($individual instanceof Individual) { |
149 | 149 | $fact = $individual |
150 | 150 | ->facts(['NAME']) |
151 | - ->first(fn (Fact $fact): bool => in_array($fact->attribute('TYPE'), ['', 'birth', 'change'], true)); |
|
151 | + ->first(fn(Fact $fact): bool => in_array($fact->attribute('TYPE'), ['', 'birth', 'change'], true)); |
|
152 | 152 | |
153 | 153 | if ($fact instanceof Fact) { |
154 | 154 | return $fact->value(); |