@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | public function getSidebarContent(Individual $individual): string |
| 102 | 102 | { |
| 103 | 103 | $html = $individual->facts(static::HANDLED_FACTS) |
| 104 | - ->map(static fn (Fact $fact): string =>view('fact', ['fact' => $fact, 'record' => $individual])) |
|
| 104 | + ->map(static fn(Fact $fact): string =>view('fact', ['fact' => $fact, 'record' => $individual])) |
|
| 105 | 105 | ->implode(''); |
| 106 | 106 | |
| 107 | 107 | return strip_tags($html, '<a><div><span><i>'); |
@@ -114,6 +114,6 @@ discard block |
||
| 114 | 114 | */ |
| 115 | 115 | public function supportedFacts(): Collection |
| 116 | 116 | { |
| 117 | - return new Collection(array_map(static fn (string $tag): string => 'INDI:' . $tag, static::HANDLED_FACTS)); |
|
| 117 | + return new Collection(array_map(static fn(string $tag): string => 'INDI:' . $tag, static::HANDLED_FACTS)); |
|
| 118 | 118 | } |
| 119 | 119 | } |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | } |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | - $callback = static fn (Fact $fact): bool => preg_match('/(?:^1|\n\d) NOTE/', $fact->gedcom()) === 1; |
|
| 145 | + $callback = static fn(Fact $fact): bool => preg_match('/(?:^1|\n\d) NOTE/', $fact->gedcom()) === 1; |
|
| 146 | 146 | |
| 147 | 147 | $this->facts = $facts->filter($callback); |
| 148 | 148 | |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | if ($note->canShow()) { |
| 157 | 157 | $noterec = $note->gedcom(); |
| 158 | 158 | $nt = preg_match("/0 @$nmatch[1]@ NOTE (.*)/", $noterec, $n1match); |
| 159 | - $data .= self::printNoteRecord($tree, $nt > 0 ? $n1match[1] : '', 1, $noterec); |
|
| 159 | + $data .= self::printNoteRecord($tree, $nt > 0 ? $n1match[1] : '', 1, $noterec); |
|
| 160 | 160 | } |
| 161 | 161 | } else { |
| 162 | 162 | $data = '<div class="fact_NOTE"><span class="label">' . I18N::translate('Note') . '</span>: <span class="field error">' . $nmatch[1] . '</span></div>'; |