@@ -66,7 +66,7 @@ |
||
66 | 66 | /** |
67 | 67 | * A menu, to be added to the main application menu. |
68 | 68 | */ |
69 | - public function getMenu(Tree $tree): Menu|null |
|
69 | + public function getMenu(Tree $tree): Menu | null |
|
70 | 70 | { |
71 | 71 | $submenu = [ |
72 | 72 | $this->calendarDayMenu($tree), |
@@ -75,7 +75,7 @@ |
||
75 | 75 | * |
76 | 76 | * @return Collection<int,string>|null |
77 | 77 | */ |
78 | - protected function individualsToFix(Tree $tree, array $params): Collection|null |
|
78 | + protected function individualsToFix(Tree $tree, array $params): Collection | null |
|
79 | 79 | { |
80 | 80 | $query = $this->individualsToFixQuery($tree, $params); |
81 | 81 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * |
49 | 49 | * @return Menu|null |
50 | 50 | */ |
51 | - public function chartBoxMenu(Individual $individual): Menu|null |
|
51 | + public function chartBoxMenu(Individual $individual): Menu | null |
|
52 | 52 | { |
53 | 53 | return null; |
54 | 54 | } |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * |
131 | 131 | * @return Menu|null |
132 | 132 | */ |
133 | - public function chartBoxMenu(Individual $individual): Menu|null |
|
133 | + public function chartBoxMenu(Individual $individual): Menu | null |
|
134 | 134 | { |
135 | 135 | return $this->chartMenu($individual); |
136 | 136 | } |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | |
201 | 201 | // Father’s ancestors link to the father’s pedigree |
202 | 202 | // Mother’s ancestors link to the mother’s pedigree.. |
203 | - $links = $ancestors->map(function (Individual|null $individual, $sosa) use ($ancestors, $style, $generations): string { |
|
203 | + $links = $ancestors->map(function (Individual | null $individual, $sosa) use ($ancestors, $style, $generations): string { |
|
204 | 204 | if ($individual instanceof Individual && $sosa >= 2 ** $generations / 2 && $individual->childFamilies()->isNotEmpty()) { |
205 | 205 | // The last row/column, and there are more generations. |
206 | 206 | if ($sosa >= 2 ** $generations * 3 / 4) { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * |
35 | 35 | * @return Menu|null |
36 | 36 | */ |
37 | - public function listMenu(Tree $tree): Menu|null; |
|
37 | + public function listMenu(Tree $tree): Menu | null; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * CSS class for the menu. |
@@ -98,7 +98,7 @@ |
||
98 | 98 | * |
99 | 99 | * @return Menu|null |
100 | 100 | */ |
101 | - public function getMenu(Tree $tree): Menu|null |
|
101 | + public function getMenu(Tree $tree): Menu | null |
|
102 | 102 | { |
103 | 103 | if ($this->faqsExist($tree, I18N::languageTag())) { |
104 | 104 | return new Menu($this->title(), route('module', [ |
@@ -30,7 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * A menu item for this chart for an individual box in a chart. |
32 | 32 | */ |
33 | - public function chartBoxMenu(Individual $individual): Menu|null; |
|
33 | + public function chartBoxMenu(Individual $individual): Menu | null; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * A main menu item for this chart. |
@@ -338,7 +338,7 @@ |
||
338 | 338 | * |
339 | 339 | * @return array{columns:array<array<Place>>,place:Place,tree:Tree,col_class:string}|null |
340 | 340 | */ |
341 | - private function getHierarchy(Place $place): array|null |
|
341 | + private function getHierarchy(Place $place): array | null |
|
342 | 342 | { |
343 | 343 | $child_places = $place->getChildPlaces(); |
344 | 344 | $numfound = count($child_places); |
@@ -80,7 +80,7 @@ |
||
80 | 80 | /** |
81 | 81 | * A menu, to be added to the main application menu. |
82 | 82 | */ |
83 | - public function getMenu(Tree $tree): Menu|null |
|
83 | + public function getMenu(Tree $tree): Menu | null |
|
84 | 84 | { |
85 | 85 | $request = Registry::container()->get(ServerRequestInterface::class); |
86 | 86 | $xref = Validator::attributes($request)->isXref()->string('xref', ''); |