@@ -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()) |
@@ -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 |
@@ -33,10 +33,10 @@ discard block |
||
33 | 33 | protected const ROUTE_NAME = FamilyPage::class; |
34 | 34 | |
35 | 35 | // The husband (or first spouse for same-sex couples) |
36 | - private Individual|null $husb = null; |
|
36 | + private Individual | null $husb = null; |
|
37 | 37 | |
38 | 38 | // The wife (or second spouse for same-sex couples) |
39 | - private Individual|null $wife = null; |
|
39 | + private Individual | null $wife = null; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Create a GedcomRecord object from raw GEDCOM data. |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * empty string for records with pending deletions |
48 | 48 | * @param Tree $tree |
49 | 49 | */ |
50 | - public function __construct(string $xref, string $gedcom, string|null $pending, Tree $tree) |
|
50 | + public function __construct(string $xref, string $gedcom, string | null $pending, Tree $tree) |
|
51 | 51 | { |
52 | 52 | parent::__construct($xref, $gedcom, $pending, $tree); |
53 | 53 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * |
106 | 106 | * @return Individual|null |
107 | 107 | */ |
108 | - public function husband(int|null $access_level = null): Individual|null |
|
108 | + public function husband(int | null $access_level = null): Individual | null |
|
109 | 109 | { |
110 | 110 | if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') { |
111 | 111 | $access_level = Auth::PRIV_HIDE; |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | * |
126 | 126 | * @return Individual|null |
127 | 127 | */ |
128 | - public function wife(int|null $access_level = null): Individual|null |
|
128 | + public function wife(int | null $access_level = null): Individual | null |
|
129 | 129 | { |
130 | 130 | if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') { |
131 | 131 | $access_level = Auth::PRIV_HIDE; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | * |
167 | 167 | * @return bool |
168 | 168 | */ |
169 | - public function canShowName(int|null $access_level = null): bool |
|
169 | + public function canShowName(int | null $access_level = null): bool |
|
170 | 170 | { |
171 | 171 | // We can always see the name (Husband-name + Wife-name), however, |
172 | 172 | // the name will often be "private + private" |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * |
182 | 182 | * @return Individual|null |
183 | 183 | */ |
184 | - public function spouse(Individual $person, int|null $access_level = null): Individual|null |
|
184 | + public function spouse(Individual $person, int | null $access_level = null): Individual | null |
|
185 | 185 | { |
186 | 186 | if ($person === $this->wife) { |
187 | 187 | return $this->husband($access_level); |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | * |
198 | 198 | * @return Collection<int,Individual> |
199 | 199 | */ |
200 | - public function spouses(int|null $access_level = null): Collection |
|
200 | + public function spouses(int | null $access_level = null): Collection |
|
201 | 201 | { |
202 | 202 | $spouses = new Collection([ |
203 | 203 | $this->husband($access_level), |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * |
215 | 215 | * @return Collection<int,Individual> |
216 | 216 | */ |
217 | - public function children(int|null $access_level = null): Collection |
|
217 | + public function children(int | null $access_level = null): Collection |
|
218 | 218 | { |
219 | 219 | $access_level ??= Auth::accessLevel($this->tree); |
220 | 220 | |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | /** |
255 | 255 | * get the marriage event |
256 | 256 | */ |
257 | - public function getMarriage(): Fact|null |
|
257 | + public function getMarriage(): Fact | null |
|
258 | 258 | { |
259 | 259 | return $this->facts(['MARR'])->first(); |
260 | 260 | } |
@@ -45,11 +45,11 @@ discard block |
||
45 | 45 | protected const ROUTE_NAME = IndividualPage::class; |
46 | 46 | |
47 | 47 | /** Used in some lists to keep track of this individual’s generation in that list */ |
48 | - public int|null $generation = null; |
|
48 | + public int | null $generation = null; |
|
49 | 49 | |
50 | - private Date|null $estimated_birth_date = null; |
|
50 | + private Date | null $estimated_birth_date = null; |
|
51 | 51 | |
52 | - private Date|null $estimated_death_date = null; |
|
52 | + private Date | null $estimated_death_date = null; |
|
53 | 53 | |
54 | 54 | /** |
55 | 55 | * A closure which will compare individuals by birth date. |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * |
79 | 79 | * @return bool |
80 | 80 | */ |
81 | - public function canShowName(int|null $access_level = null): bool |
|
81 | + public function canShowName(int | null $access_level = null): bool |
|
82 | 82 | { |
83 | 83 | $access_level ??= Auth::accessLevel($this->tree); |
84 | 84 | |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | /** |
347 | 347 | * Find the highlighted media object for an individual |
348 | 348 | */ |
349 | - public function findHighlightedMediaFile(): MediaFile|null |
|
349 | + public function findHighlightedMediaFile(): MediaFile | null |
|
350 | 350 | { |
351 | 351 | $fact = $this->facts(['OBJE']) |
352 | 352 | ->first(static function (Fact $fact): bool { |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | * |
698 | 698 | * @return Collection<int,Family> |
699 | 699 | */ |
700 | - public function spouseFamilies(int|null $access_level = null): Collection |
|
700 | + public function spouseFamilies(int | null $access_level = null): Collection |
|
701 | 701 | { |
702 | 702 | $access_level ??= Auth::accessLevel($this->tree); |
703 | 703 | |
@@ -724,7 +724,7 @@ discard block |
||
724 | 724 | * |
725 | 725 | * @return Individual|null |
726 | 726 | */ |
727 | - public function getCurrentSpouse(): Individual|null |
|
727 | + public function getCurrentSpouse(): Individual | null |
|
728 | 728 | { |
729 | 729 | $family = $this->spouseFamilies()->last(); |
730 | 730 | |
@@ -763,7 +763,7 @@ discard block |
||
763 | 763 | * |
764 | 764 | * @return Collection<int,Family> |
765 | 765 | */ |
766 | - public function childFamilies(int|null $access_level = null): Collection |
|
766 | + public function childFamilies(int | null $access_level = null): Collection |
|
767 | 767 | { |
768 | 768 | $access_level ??= Auth::accessLevel($this->tree); |
769 | 769 |