@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @return Location|null |
39 | 39 | */ |
40 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Location; |
|
40 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): ?Location; |
|
41 | 41 | |
42 | 42 | /** |
43 | 43 | * Create a Location from a row in the database. |
@@ -59,5 +59,5 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @return Location |
61 | 61 | */ |
62 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Location; |
|
62 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Location; |
|
63 | 63 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * |
33 | 33 | * @return string |
34 | 34 | */ |
35 | - public function autolink(string $markdown, Tree|null $tree = null): string; |
|
35 | + public function autolink(string $markdown, Tree | null $tree = null): string; |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * @param string $markdown |
@@ -40,5 +40,5 @@ discard block |
||
40 | 40 | * |
41 | 41 | * @return string |
42 | 42 | */ |
43 | - public function markdown(string $markdown, Tree|null $tree = null): string; |
|
43 | + public function markdown(string $markdown, Tree | null $tree = null): string; |
|
44 | 44 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @return Media|null |
39 | 39 | */ |
40 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Media; |
|
40 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): ?Media; |
|
41 | 41 | |
42 | 42 | /** |
43 | 43 | * Create a media object from a row in the database. |
@@ -59,5 +59,5 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @return Media |
61 | 61 | */ |
62 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Media; |
|
62 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Media; |
|
63 | 63 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @return Submission|null |
39 | 39 | */ |
40 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Submission; |
|
40 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): ?Submission; |
|
41 | 41 | |
42 | 42 | /** |
43 | 43 | * Create a submission from a row in the database. |
@@ -59,5 +59,5 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @return Submission |
61 | 61 | */ |
62 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Submission; |
|
62 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Submission; |
|
63 | 63 | } |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | * @return string |
321 | 321 | */ |
322 | 322 | public function chartIndisWithSources( |
323 | - string|null $color_from = null, |
|
323 | + string | null $color_from = null, |
|
324 | 324 | string $color_to = null |
325 | 325 | ): string { |
326 | 326 | return $this->individual_repository->chartIndisWithSources($color_from, $color_to); |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | * @return string |
374 | 374 | */ |
375 | 375 | public function chartFamsWithSources( |
376 | - string|null $color_from = null, |
|
376 | + string | null $color_from = null, |
|
377 | 377 | string $color_to = null |
378 | 378 | ): string { |
379 | 379 | return $this->individual_repository->chartFamsWithSources($color_from, $color_to); |
@@ -585,8 +585,8 @@ discard block |
||
585 | 585 | * @return string |
586 | 586 | */ |
587 | 587 | public function chartSex( |
588 | - string|null $color_female = null, |
|
589 | - string|null $color_male = null, |
|
588 | + string | null $color_female = null, |
|
589 | + string | null $color_male = null, |
|
590 | 590 | string $color_unknown = null |
591 | 591 | ): string { |
592 | 592 | return $this->individual_repository->chartSex($color_female, $color_male, $color_unknown); |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | * |
631 | 631 | * @return string |
632 | 632 | */ |
633 | - public function chartMortality(string|null $color_living = null, string|null $color_dead = null): string |
|
633 | + public function chartMortality(string | null $color_living = null, string | null $color_dead = null): string |
|
634 | 634 | { |
635 | 635 | return $this->individual_repository->chartMortality($color_living, $color_dead); |
636 | 636 | } |
@@ -801,7 +801,7 @@ discard block |
||
801 | 801 | * |
802 | 802 | * @return string |
803 | 803 | */ |
804 | - public function chartMedia(string|null $color_from = null, string|null $color_to = null): string |
|
804 | + public function chartMedia(string | null $color_from = null, string | null $color_to = null): string |
|
805 | 805 | { |
806 | 806 | return $this->media_repository->chartMedia($color_from, $color_to); |
807 | 807 | } |
@@ -953,7 +953,7 @@ discard block |
||
953 | 953 | * |
954 | 954 | * @return string |
955 | 955 | */ |
956 | - public function statsBirth(string|null $color_from = null, string|null $color_to = null): string |
|
956 | + public function statsBirth(string | null $color_from = null, string | null $color_to = null): string |
|
957 | 957 | { |
958 | 958 | return $this->individual_repository->statsBirth($color_from, $color_to); |
959 | 959 | } |
@@ -1050,7 +1050,7 @@ discard block |
||
1050 | 1050 | * |
1051 | 1051 | * @return string |
1052 | 1052 | */ |
1053 | - public function statsDeath(string|null $color_from = null, string|null $color_to = null): string |
|
1053 | + public function statsDeath(string | null $color_from = null, string | null $color_to = null): string |
|
1054 | 1054 | { |
1055 | 1055 | return $this->individual_repository->statsDeath($color_from, $color_to); |
1056 | 1056 | } |
@@ -1472,7 +1472,7 @@ discard block |
||
1472 | 1472 | * |
1473 | 1473 | * @return string |
1474 | 1474 | */ |
1475 | - public function statsMarr(string|null $color_from = null, string|null $color_to = null): string |
|
1475 | + public function statsMarr(string | null $color_from = null, string | null $color_to = null): string |
|
1476 | 1476 | { |
1477 | 1477 | return $this->family_repository->statsMarr($color_from, $color_to); |
1478 | 1478 | } |
@@ -1547,7 +1547,7 @@ discard block |
||
1547 | 1547 | * |
1548 | 1548 | * @return string |
1549 | 1549 | */ |
1550 | - public function statsDiv(string|null $color_from = null, string|null $color_to = null): string |
|
1550 | + public function statsDiv(string | null $color_from = null, string | null $color_to = null): string |
|
1551 | 1551 | { |
1552 | 1552 | return $this->family_repository->statsDiv($color_from, $color_to); |
1553 | 1553 | } |
@@ -1982,8 +1982,8 @@ discard block |
||
1982 | 1982 | * @return string |
1983 | 1983 | */ |
1984 | 1984 | public function chartLargestFamilies( |
1985 | - string|null $color_from = null, |
|
1986 | - string|null $color_to = null, |
|
1985 | + string | null $color_from = null, |
|
1986 | + string | null $color_to = null, |
|
1987 | 1987 | string $total = '10' |
1988 | 1988 | ): string { |
1989 | 1989 | return $this->family_repository->chartLargestFamilies($color_from, $color_to, (int) $total); |
@@ -2193,8 +2193,8 @@ discard block |
||
2193 | 2193 | * @return string |
2194 | 2194 | */ |
2195 | 2195 | public function chartCommonSurnames( |
2196 | - string|null $color_from = null, |
|
2197 | - string|null $color_to = null, |
|
2196 | + string | null $color_from = null, |
|
2197 | + string | null $color_to = null, |
|
2198 | 2198 | string $number_of_surnames = '10' |
2199 | 2199 | ): string { |
2200 | 2200 | return $this->individual_repository |
@@ -2429,8 +2429,8 @@ discard block |
||
2429 | 2429 | * @return string |
2430 | 2430 | */ |
2431 | 2431 | public function chartCommonGiven( |
2432 | - string|null $color_from = null, |
|
2433 | - string|null $color_to = null, |
|
2432 | + string | null $color_from = null, |
|
2433 | + string | null $color_to = null, |
|
2434 | 2434 | string $maxtoshow = '7' |
2435 | 2435 | ): string { |
2436 | 2436 | return $this->individual_repository->chartCommonGiven($color_from, $color_to, (int) $maxtoshow); |
@@ -2555,7 +2555,7 @@ discard block |
||
2555 | 2555 | * |
2556 | 2556 | * @return string |
2557 | 2557 | */ |
2558 | - public function latestUserRegDate(string|null $format = null): string |
|
2558 | + public function latestUserRegDate(string | null $format = null): string |
|
2559 | 2559 | { |
2560 | 2560 | return $this->latest_user_repository->latestUserRegDate($format); |
2561 | 2561 | } |
@@ -2565,7 +2565,7 @@ discard block |
||
2565 | 2565 | * |
2566 | 2566 | * @return string |
2567 | 2567 | */ |
2568 | - public function latestUserRegTime(string|null $format = null): string |
|
2568 | + public function latestUserRegTime(string | null $format = null): string |
|
2569 | 2569 | { |
2570 | 2570 | return $this->latest_user_repository->latestUserRegTime($format); |
2571 | 2571 | } |
@@ -2576,7 +2576,7 @@ discard block |
||
2576 | 2576 | * |
2577 | 2577 | * @return string |
2578 | 2578 | */ |
2579 | - public function latestUserLoggedin(string|null $yes = null, string|null $no = null): string |
|
2579 | + public function latestUserLoggedin(string | null $yes = null, string | null $no = null): string |
|
2580 | 2580 | { |
2581 | 2581 | return $this->latest_user_repository->latestUserLoggedin($yes, $no); |
2582 | 2582 | } |
@@ -2805,7 +2805,7 @@ discard block |
||
2805 | 2805 | /** @var ModuleBlockInterface|null $module */ |
2806 | 2806 | $module = $this->module_service |
2807 | 2807 | ->findByComponent(ModuleBlockInterface::class, $this->tree, Auth::user()) |
2808 | - ->first(static function (ModuleInterface $module) use ($block): bool { |
|
2808 | + ->first(static function (ModuleInterface $module) use ($block) : bool { |
|
2809 | 2809 | return $module->name() === $block && $module->name() !== 'html'; |
2810 | 2810 | }); |
2811 | 2811 |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * |
108 | 108 | * @return Individual|null |
109 | 109 | */ |
110 | - public function husband(int|null $access_level = null): ?Individual |
|
110 | + public function husband(int | null $access_level = null): ?Individual |
|
111 | 111 | { |
112 | 112 | if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') { |
113 | 113 | $access_level = Auth::PRIV_HIDE; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * |
128 | 128 | * @return Individual|null |
129 | 129 | */ |
130 | - public function wife(int|null $access_level = null): ?Individual |
|
130 | + public function wife(int | null $access_level = null): ?Individual |
|
131 | 131 | { |
132 | 132 | if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') { |
133 | 133 | $access_level = Auth::PRIV_HIDE; |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | * |
169 | 169 | * @return bool |
170 | 170 | */ |
171 | - public function canShowName(int|null $access_level = null): bool |
|
171 | + public function canShowName(int | null $access_level = null): bool |
|
172 | 172 | { |
173 | 173 | // We can always see the name (Husband-name + Wife-name), however, |
174 | 174 | // the name will often be "private + private" |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * |
184 | 184 | * @return Individual|null |
185 | 185 | */ |
186 | - public function spouse(Individual $person, int|null $access_level = null): ?Individual |
|
186 | + public function spouse(Individual $person, int | null $access_level = null): ?Individual |
|
187 | 187 | { |
188 | 188 | if ($person === $this->wife) { |
189 | 189 | return $this->husband($access_level); |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | * |
200 | 200 | * @return Collection<int,Individual> |
201 | 201 | */ |
202 | - public function spouses(int|null $access_level = null): Collection |
|
202 | + public function spouses(int | null $access_level = null): Collection |
|
203 | 203 | { |
204 | 204 | $spouses = new Collection([ |
205 | 205 | $this->husband($access_level), |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | * |
217 | 217 | * @return Collection<int,Individual> |
218 | 218 | */ |
219 | - public function children(int|null $access_level = null): Collection |
|
219 | + public function children(int | null $access_level = null): Collection |
|
220 | 220 | { |
221 | 221 | $access_level ??= Auth::accessLevel($this->tree); |
222 | 222 |
@@ -78,7 +78,7 @@ |
||
78 | 78 | * @param string $label |
79 | 79 | * @param array<string>|null $subtags |
80 | 80 | */ |
81 | - public function __construct(string $label, array|null $subtags = null) |
|
81 | + public function __construct(string $label, array | null $subtags = null) |
|
82 | 82 | { |
83 | 83 | $this->label = $label; |
84 | 84 | $this->subtags = $subtags ?? static::SUBTAGS; |
@@ -89,7 +89,7 @@ |
||
89 | 89 | * @param string $label |
90 | 90 | * @param array<string>|null $subtags |
91 | 91 | */ |
92 | - public function __construct(string $label, array|null $subtags = null) |
|
92 | + public function __construct(string $label, array | null $subtags = null) |
|
93 | 93 | { |
94 | 94 | if ($subtags === null && in_array(I18N::languageTag(), static::SURNAME_FIRST_LANGUAGES, true)) { |
95 | 95 | $subtags = static::SUBTAGS_SURNAME_FIRST; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * |
83 | 83 | * @return bool |
84 | 84 | */ |
85 | - public function canShowName(int|null $access_level = null): bool |
|
85 | + public function canShowName(int | null $access_level = null): bool |
|
86 | 86 | { |
87 | 87 | $access_level ??= Auth::accessLevel($this->tree); |
88 | 88 | |
@@ -703,7 +703,7 @@ discard block |
||
703 | 703 | * |
704 | 704 | * @return Collection<int,Family> |
705 | 705 | */ |
706 | - public function spouseFamilies(int|null $access_level = null): Collection |
|
706 | + public function spouseFamilies(int | null $access_level = null): Collection |
|
707 | 707 | { |
708 | 708 | $access_level ??= Auth::accessLevel($this->tree); |
709 | 709 | |
@@ -769,7 +769,7 @@ discard block |
||
769 | 769 | * |
770 | 770 | * @return Collection<int,Family> |
771 | 771 | */ |
772 | - public function childFamilies(int|null $access_level = null): Collection |
|
772 | + public function childFamilies(int | null $access_level = null): Collection |
|
773 | 773 | { |
774 | 774 | $access_level ??= Auth::accessLevel($this->tree); |
775 | 775 |