@@ -87,7 +87,7 @@ |
||
| 87 | 87 | * |
| 88 | 88 | * @return array<int,string> |
| 89 | 89 | */ |
| 90 | - public function newChildNames(Individual|null $father, Individual|null $mother, string $sex): array |
|
| 90 | + public function newChildNames(Individual | null $father, Individual | null $mother, string $sex): array |
|
| 91 | 91 | { |
| 92 | 92 | if (preg_match(self::REGEX_SURN, $this->extractName($father), $match) === 1) { |
| 93 | 93 | if ($sex === 'F') { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * |
| 87 | 87 | * @return array<int,string> |
| 88 | 88 | */ |
| 89 | - public function newChildNames(Individual|null $father, Individual|null $mother, string $sex): array |
|
| 89 | + public function newChildNames(Individual | null $father, Individual | null $mother, string $sex): array |
|
| 90 | 90 | { |
| 91 | 91 | return [ |
| 92 | 92 | $this->buildName('//', ['TYPE' => NameType::VALUE_BIRTH]), |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * |
| 156 | 156 | * @return string |
| 157 | 157 | */ |
| 158 | - protected function extractName(Individual|null $individual): string |
|
| 158 | + protected function extractName(Individual | null $individual): string |
|
| 159 | 159 | { |
| 160 | 160 | if ($individual instanceof Individual) { |
| 161 | 161 | $fact = $individual |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | * |
| 58 | 58 | * @return array<int,string> |
| 59 | 59 | */ |
| 60 | - public function newChildNames(Individual|null $father, Individual|null $mother, string $sex): array; |
|
| 60 | + public function newChildNames(Individual | null $father, Individual | null $mother, string $sex): array; |
|
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * What name is given to a new parent |
@@ -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['SURN1']; |
@@ -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()) |