@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * |
86 | 86 | * @return Collection<int,Family> |
87 | 87 | */ |
88 | - public function linkedFamilies(GedcomRecord $record, string|null $link_type = null): Collection |
|
88 | + public function linkedFamilies(GedcomRecord $record, string | null $link_type = null): Collection |
|
89 | 89 | { |
90 | 90 | $query = DB::table('families') |
91 | 91 | ->join('link', static function (JoinClause $join): void { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * |
117 | 117 | * @return Collection<int,Individual> |
118 | 118 | */ |
119 | - public function linkedIndividuals(GedcomRecord $record, string|null $link_type = null): Collection |
|
119 | + public function linkedIndividuals(GedcomRecord $record, string | null $link_type = null): Collection |
|
120 | 120 | { |
121 | 121 | $query = DB::table('individuals') |
122 | 122 | ->join('link', static function (JoinClause $join): void { |
@@ -38,7 +38,7 @@ |
||
38 | 38 | /** |
39 | 39 | * @param float|null $start_time |
40 | 40 | */ |
41 | - public function __construct(float|null $start_time = null) |
|
41 | + public function __construct(float | null $start_time = null) |
|
42 | 42 | { |
43 | 43 | $this->start_time = $start_time ?? Registry::timeFactory()->now(); |
44 | 44 | } |
@@ -325,7 +325,7 @@ |
||
325 | 325 | * |
326 | 326 | * @deprecated This code was originally Functions::getRelationshipNameFromPath |
327 | 327 | */ |
328 | - public function legacyNameAlgorithm(string $path, Individual|null $person1 = null, Individual|null $person2 = null): string |
|
328 | + public function legacyNameAlgorithm(string $path, Individual | null $person1 = null, Individual | null $person2 = null): string |
|
329 | 329 | { |
330 | 330 | // The path does not include the starting person. In some languages, the |
331 | 331 | // translation for a man’s (relative) is different from a woman’s (relative), |
@@ -196,7 +196,7 @@ |
||
196 | 196 | * |
197 | 197 | * @return string |
198 | 198 | */ |
199 | - public function getPreference(string $setting_name, string|null $default = null): string |
|
199 | + public function getPreference(string $setting_name, string | null $default = null): string |
|
200 | 200 | { |
201 | 201 | if ($this->preferences === []) { |
202 | 202 | $this->preferences = DB::table('gedcom_setting') |
@@ -78,8 +78,8 @@ |
||
78 | 78 | * @return string |
79 | 79 | */ |
80 | 80 | public function chartLargestFamilies( |
81 | - string|null $color_from = null, |
|
82 | - string|null $color_to = null, |
|
81 | + string | null $color_from = null, |
|
82 | + string | null $color_to = null, |
|
83 | 83 | int $total = 10 |
84 | 84 | ): string { |
85 | 85 | $color_from ??= 'ffffff'; |
@@ -86,7 +86,7 @@ |
||
86 | 86 | * |
87 | 87 | * @return string |
88 | 88 | */ |
89 | - public function chartDeath(string|null $color_from = null, string|null $color_to = null): string |
|
89 | + public function chartDeath(string | null $color_from = null, string | null $color_to = null): string |
|
90 | 90 | { |
91 | 91 | $color_from ??= 'ffffff'; |
92 | 92 | $color_to ??= '84beff'; |
@@ -86,7 +86,7 @@ |
||
86 | 86 | * |
87 | 87 | * @return string |
88 | 88 | */ |
89 | - public function chartMarriage(string|null $color_from = null, string|null $color_to = null): string |
|
89 | + public function chartMarriage(string | null $color_from = null, string | null $color_to = null): string |
|
90 | 90 | { |
91 | 91 | $color_from ??= 'ffffff'; |
92 | 92 | $color_to ??= '84beff'; |
@@ -86,7 +86,7 @@ |
||
86 | 86 | * |
87 | 87 | * @return string |
88 | 88 | */ |
89 | - public function chartDivorce(string|null $color_from = null, string|null $color_to = null): string |
|
89 | + public function chartDivorce(string | null $color_from = null, string | null $color_to = null): string |
|
90 | 90 | { |
91 | 91 | $color_from ??= 'ffffff'; |
92 | 92 | $color_to ??= '84beff'; |
@@ -86,7 +86,7 @@ |
||
86 | 86 | * |
87 | 87 | * @return string |
88 | 88 | */ |
89 | - public function chartBirth(string|null $color_from = null, string|null $color_to = null): string |
|
89 | + public function chartBirth(string | null $color_from = null, string | null $color_to = null): string |
|
90 | 90 | { |
91 | 91 | $color_from ??= 'ffffff'; |
92 | 92 | $color_to ??= '84beff'; |