@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * Find the father of an individual |
| 67 | 67 | */ |
| 68 | - public function father(Individual $individual): Individual|null |
|
| 68 | + public function father(Individual $individual): Individual | null |
|
| 69 | 69 | { |
| 70 | 70 | $family = $individual->childFamilies()->first(); |
| 71 | 71 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | /** |
| 80 | 80 | * Find the mother of an individual |
| 81 | 81 | */ |
| 82 | - public function mother(Individual $individual): Individual|null |
|
| 82 | + public function mother(Individual $individual): Individual | null |
|
| 83 | 83 | { |
| 84 | 84 | $family = $individual->childFamilies()->first(); |
| 85 | 85 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | /** |
| 94 | 94 | * Find the current spouse family of an individual |
| 95 | 95 | */ |
| 96 | - public function spouseFamily(Individual $individual): Family|null |
|
| 96 | + public function spouseFamily(Individual $individual): Family | null |
|
| 97 | 97 | { |
| 98 | 98 | return $individual->spouseFamilies() |
| 99 | 99 | // Exclude families that were created after this census date |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | return 6; |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | - public function getMenu(Tree $tree): Menu|null |
|
| 133 | + public function getMenu(Tree $tree): Menu | null |
|
| 134 | 134 | { |
| 135 | 135 | $request = Registry::container()->get(ServerRequestInterface::class); |
| 136 | 136 | $route = Validator::attributes($request)->route(); |
@@ -353,7 +353,7 @@ discard block |
||
| 353 | 353 | $xrefs = array_map('strval', $xrefs); // PHP converts numeric keys to integers. |
| 354 | 354 | |
| 355 | 355 | // Fetch all the records in the cart. |
| 356 | - $records = array_map(static fn (string $xref): GedcomRecord|null => Registry::gedcomRecordFactory()->make($xref, $tree), $xrefs); |
|
| 356 | + $records = array_map(static fn (string $xref): GedcomRecord | null => Registry::gedcomRecordFactory()->make($xref, $tree), $xrefs); |
|
| 357 | 357 | |
| 358 | 358 | // Some records may have been deleted after they were added to the cart. |
| 359 | 359 | $records = array_filter($records); |