@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * Create a note. |
| 40 | 40 | */ |
| 41 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): Note|null |
|
| 41 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): Note | null |
|
| 42 | 42 | { |
| 43 | 43 | return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) { |
| 44 | 44 | $gedcom ??= $this->gedcom($xref, $tree); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * |
| 78 | 78 | * @return Note |
| 79 | 79 | */ |
| 80 | - public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Note |
|
| 80 | + public function new(string $xref, string $gedcom, string | null $pending, Tree $tree): Note |
|
| 81 | 81 | { |
| 82 | 82 | return new Note($xref, $gedcom, $pending, $tree); |
| 83 | 83 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * |
| 91 | 91 | * @return string|null |
| 92 | 92 | */ |
| 93 | - protected function gedcom(string $xref, Tree $tree): string|null |
|
| 93 | + protected function gedcom(string $xref, Tree $tree): string | null |
|
| 94 | 94 | { |
| 95 | 95 | return DB::table('other') |
| 96 | 96 | ->where('o_id', '=', $xref) |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | class SlugFactory implements SlugFactoryInterface |
| 36 | 36 | { |
| 37 | - private Transliterator|null $transliterator = null; |
|
| 37 | + private Transliterator | null $transliterator = null; |
|
| 38 | 38 | |
| 39 | 39 | public function __construct() |
| 40 | 40 | { |
@@ -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']; |