@@ -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') { |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | * |
176 | 176 | * @return void |
177 | 177 | */ |
178 | - public function deleteUnusedLocations(int|null $parent_location_id, array $parent_place_ids): void |
|
178 | + public function deleteUnusedLocations(int | null $parent_location_id, array $parent_place_ids): void |
|
179 | 179 | { |
180 | 180 | if ($parent_location_id === null) { |
181 | 181 | $location_query = DB::table('place_location') |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * |
213 | 213 | * @return Collection<int,object> |
214 | 214 | */ |
215 | - public function getPlaceListLocation(int|null $parent_id): Collection |
|
215 | + public function getPlaceListLocation(int | null $parent_id): Collection |
|
216 | 216 | { |
217 | 217 | $prefix = DB::prefix(); |
218 | 218 |
@@ -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'; |
@@ -53,8 +53,8 @@ |
||
53 | 53 | public function chartMortality( |
54 | 54 | int $tot_l, |
55 | 55 | int $tot_d, |
56 | - string|null $color_living = null, |
|
57 | - string|null $color_dead = null |
|
56 | + string | null $color_living = null, |
|
57 | + string | null $color_dead = null |
|
58 | 58 | ): string { |
59 | 59 | $color_living ??= '#ffffff'; |
60 | 60 | $color_dead ??= '#cccccc'; |
@@ -53,8 +53,8 @@ |
||
53 | 53 | public function chartCommonGiven( |
54 | 54 | int $tot_indi, |
55 | 55 | array $given, |
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'; |
@@ -42,9 +42,9 @@ |
||
42 | 42 | int $tot_m, |
43 | 43 | int $tot_f, |
44 | 44 | int $tot_u, |
45 | - string|null $color_female = null, |
|
46 | - string|null $color_male = null, |
|
47 | - string|null $color_unknown = null |
|
45 | + string | null $color_female = null, |
|
46 | + string | null $color_male = null, |
|
47 | + string | null $color_unknown = null |
|
48 | 48 | ): string { |
49 | 49 | $color_female ??= '#ffd1dc'; |
50 | 50 | $color_male ??= '#84beff'; |