@@ -57,5 +57,5 @@ |
||
57 | 57 | * |
58 | 58 | * @return Menu|null |
59 | 59 | */ |
60 | - public function getMenu(Tree $tree): Menu|null; |
|
60 | + public function getMenu(Tree $tree): Menu | null; |
|
61 | 61 | } |
@@ -92,7 +92,7 @@ |
||
92 | 92 | * |
93 | 93 | * @return Collection<int,string>|null |
94 | 94 | */ |
95 | - protected function individualsToFix(Tree $tree, array $params): Collection|null |
|
95 | + protected function individualsToFix(Tree $tree, array $params): Collection | null |
|
96 | 96 | { |
97 | 97 | // No DB querying possible? Select all. |
98 | 98 | return $this->individualsToFixQuery($tree, $params) |
@@ -184,7 +184,7 @@ |
||
184 | 184 | * |
185 | 185 | * @return Menu|null |
186 | 186 | */ |
187 | - public function getMenu(Tree $tree): Menu|null |
|
187 | + public function getMenu(Tree $tree): Menu | null |
|
188 | 188 | { |
189 | 189 | return new Menu($this->title(), route('module', [ |
190 | 190 | 'module' => $this->name(), |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * |
49 | 49 | * @return Menu|null |
50 | 50 | */ |
51 | - public function listMenu(Tree $tree): Menu|null |
|
51 | + public function listMenu(Tree $tree): Menu | null |
|
52 | 52 | { |
53 | 53 | if ($this->listIsEmpty($tree)) { |
54 | 54 | return null; |
@@ -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. |