@@ -104,7 +104,7 @@ |
||
104 | 104 | /** |
105 | 105 | * Return a menu item for this chart - for use in individual boxes. |
106 | 106 | */ |
107 | - public function chartBoxMenu(Individual $individual): Menu|null |
|
107 | + public function chartBoxMenu(Individual $individual): Menu | null |
|
108 | 108 | { |
109 | 109 | return $this->chartMenu($individual); |
110 | 110 | } |
@@ -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) |
@@ -252,7 +252,7 @@ |
||
252 | 252 | ]); |
253 | 253 | } |
254 | 254 | |
255 | - private function getRecordForType(string $type, string $xref, Tree $tree): GedcomRecord|null |
|
255 | + private function getRecordForType(string $type, string $xref, Tree $tree): GedcomRecord | null |
|
256 | 256 | { |
257 | 257 | switch ($type) { |
258 | 258 | case 'indi': |
@@ -141,7 +141,7 @@ |
||
141 | 141 | * |
142 | 142 | * @return Menu|null |
143 | 143 | */ |
144 | - public function chartBoxMenu(Individual $individual): Menu|null |
|
144 | + public function chartBoxMenu(Individual $individual): Menu | null |
|
145 | 145 | { |
146 | 146 | return $this->chartMenu($individual); |
147 | 147 | } |
@@ -141,7 +141,7 @@ |
||
141 | 141 | * |
142 | 142 | * @return Menu|null |
143 | 143 | */ |
144 | - public function chartBoxMenu(Individual $individual): Menu|null |
|
144 | + public function chartBoxMenu(Individual $individual): Menu | null |
|
145 | 145 | { |
146 | 146 | return $this->chartMenu($individual); |
147 | 147 | } |
@@ -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') { |
@@ -53,8 +53,8 @@ |
||
53 | 53 | public function chartIndisWithSources( |
54 | 54 | int $tot_indi, |
55 | 55 | int $tot_indi_source, |
56 | - string|null $color_from = null, |
|
57 | - string|null $color_to = null |
|
56 | + string | null $color_from = null, |
|
57 | + string | null $color_to = null |
|
58 | 58 | ): string { |
59 | 59 | $color_from ??= 'ffffff'; |
60 | 60 | $color_to ??= '84beff'; |
@@ -111,8 +111,8 @@ |
||
111 | 111 | public function chartCommonSurnames( |
112 | 112 | int $tot_indi, |
113 | 113 | array $all_surnames, |
114 | - string|null $color_from = null, |
|
115 | - string|null $color_to = null |
|
114 | + string | null $color_from = null, |
|
115 | + string | null $color_to = null |
|
116 | 116 | ): string { |
117 | 117 | $color_from ??= 'ffffff'; |
118 | 118 | $color_to ??= '84beff'; |
@@ -52,8 +52,8 @@ |
||
52 | 52 | */ |
53 | 53 | public function chartMedia( |
54 | 54 | array $media, |
55 | - string|null $color_from = null, |
|
56 | - string|null $color_to = null |
|
55 | + string | null $color_from = null, |
|
56 | + string | null $color_to = null |
|
57 | 57 | ): string { |
58 | 58 | $color_from ??= 'ffffff'; |
59 | 59 | $color_to ??= '84beff'; |