@@ -72,7 +72,7 @@ |
||
72 | 72 | * |
73 | 73 | * @return array<int,string> |
74 | 74 | */ |
75 | - public function newChildNames(Individual|null $father, Individual|null $mother, string $sex): array |
|
75 | + public function newChildNames(Individual | null $father, Individual | null $mother, string $sex): array |
|
76 | 76 | { |
77 | 77 | if (preg_match(self::REGEX_SURNS, $this->extractName($father), $match_father) === 1) { |
78 | 78 | $father_surname = $match_father['SURN2']; |
@@ -71,7 +71,7 @@ |
||
71 | 71 | * |
72 | 72 | * @return array<int,string> |
73 | 73 | */ |
74 | - public function newChildNames(Individual|null $father, Individual|null $mother, string $sex): array |
|
74 | + public function newChildNames(Individual | null $father, Individual | null $mother, string $sex): array |
|
75 | 75 | { |
76 | 76 | if (preg_match(self::REGEX_GIVN, $this->extractName($father), $match) === 1) { |
77 | 77 | switch ($sex) { |
@@ -59,7 +59,7 @@ |
||
59 | 59 | * |
60 | 60 | * @return array<int,string> |
61 | 61 | */ |
62 | - public function newChildNames(Individual|null $father, Individual|null $mother, string $sex): array |
|
62 | + public function newChildNames(Individual | null $father, Individual | null $mother, string $sex): array |
|
63 | 63 | { |
64 | 64 | if (preg_match(self::REGEX_SPFX_SURN, $this->extractName($mother), $match) === 1) { |
65 | 65 | $name = $match['NAME']; |
@@ -59,7 +59,7 @@ |
||
59 | 59 | * |
60 | 60 | * @return array<int,string> |
61 | 61 | */ |
62 | - public function newChildNames(Individual|null $father, Individual|null $mother, string $sex): array |
|
62 | + public function newChildNames(Individual | null $father, Individual | null $mother, string $sex): array |
|
63 | 63 | { |
64 | 64 | if (preg_match(self::REGEX_SPFX_SURN, $this->extractName($father), $match) === 1) { |
65 | 65 | $name = $match['NAME']; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | class CensusTableStartParser implements BlockStartParserInterface |
32 | 32 | { |
33 | - public function tryStart(Cursor $cursor, MarkdownParserStateInterface $parserState): BlockStart|null |
|
33 | + public function tryStart(Cursor $cursor, MarkdownParserStateInterface $parserState): BlockStart | null |
|
34 | 34 | { |
35 | 35 | if ($cursor->getLine() === CensusTableExtension::CA_PREFIX) { |
36 | 36 | return BlockStart::of(new CensusTableContinueParser()) |
@@ -66,7 +66,7 @@ |
||
66 | 66 | * |
67 | 67 | * @return BlockContinue|null |
68 | 68 | */ |
69 | - public function tryContinue(Cursor $cursor, BlockContinueParserInterface $activeBlockParser): BlockContinue|null |
|
69 | + public function tryContinue(Cursor $cursor, BlockContinueParserInterface $activeBlockParser): BlockContinue | null |
|
70 | 70 | { |
71 | 71 | $line = $cursor->getLine(); |
72 | 72 |
@@ -34,9 +34,9 @@ |
||
34 | 34 | { |
35 | 35 | private string $data = ''; |
36 | 36 | |
37 | - private EncodingInterface|null $src_encoding = null; |
|
37 | + private EncodingInterface | null $src_encoding = null; |
|
38 | 38 | |
39 | - private EncodingInterface|null $dst_encoding = null; |
|
39 | + private EncodingInterface | null $dst_encoding = null; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Initialization |
@@ -1899,7 +1899,7 @@ |
||
1899 | 1899 | ->groupBy(['xref']); |
1900 | 1900 | }) |
1901 | 1901 | ->get() |
1902 | - ->map(fn (object $row): GedcomRecord|null => Registry::gedcomRecordFactory()->make($row->xref, $this->tree, $row->new_gedcom ?: $row->old_gedcom)) |
|
1902 | + ->map(fn (object $row): GedcomRecord | null => Registry::gedcomRecordFactory()->make($row->xref, $this->tree, $row->new_gedcom ?: $row->old_gedcom)) |
|
1903 | 1903 | ->filter() |
1904 | 1904 | ->all(); |
1905 | 1905 | break; |
@@ -141,7 +141,7 @@ |
||
141 | 141 | * |
142 | 142 | * @return Menu|null |
143 | 143 | */ |
144 | - public function chartBoxMenu(Individual $individual): Menu|null |
|
144 | + public function chartBoxMenu(Individual $individual): Menu | null |
|
145 | 145 | { |
146 | 146 | return $this->chartMenu($individual); |
147 | 147 | } |