@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * |
| 38 | 38 | * @return Submitter|null |
| 39 | 39 | */ |
| 40 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Submitter; |
|
| 40 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): ?Submitter; |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * Create a submitter from a row in the database. |
@@ -59,5 +59,5 @@ discard block |
||
| 59 | 59 | * |
| 60 | 60 | * @return Submitter |
| 61 | 61 | */ |
| 62 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Submitter; |
|
| 62 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Submitter; |
|
| 63 | 63 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * |
| 38 | 38 | * @return Note|null |
| 39 | 39 | */ |
| 40 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Note; |
|
| 40 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): ?Note; |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * Create a note from a row in the database. |
@@ -59,5 +59,5 @@ discard block |
||
| 59 | 59 | * |
| 60 | 60 | * @return Note |
| 61 | 61 | */ |
| 62 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Note; |
|
| 62 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Note; |
|
| 63 | 63 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * |
| 38 | 38 | * @return Source|null |
| 39 | 39 | */ |
| 40 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Source; |
|
| 40 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): ?Source; |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * Create a source from a row in the database. |
@@ -59,5 +59,5 @@ discard block |
||
| 59 | 59 | * |
| 60 | 60 | * @return Source |
| 61 | 61 | */ |
| 62 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Source; |
|
| 62 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Source; |
|
| 63 | 63 | } |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * |
| 31 | 31 | * @return TimestampInterface |
| 32 | 32 | */ |
| 33 | - public function make(int $timestamp, UserInterface|null $user = null): TimestampInterface; |
|
| 33 | + public function make(int $timestamp, UserInterface | null $user = null): TimestampInterface; |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param string|null $string YYYY-MM-DD HH:MM:SS (as provided by SQL). |
@@ -39,12 +39,12 @@ discard block |
||
| 39 | 39 | * |
| 40 | 40 | * @return TimestampInterface |
| 41 | 41 | */ |
| 42 | - public function fromString(?string $string, string $format = 'Y-m-d H:i:s', UserInterface|null $user = null): TimestampInterface; |
|
| 42 | + public function fromString(?string $string, string $format = 'Y-m-d H:i:s', UserInterface | null $user = null): TimestampInterface; |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * @param UserInterface|null $user |
| 46 | 46 | * |
| 47 | 47 | * @return TimestampInterface |
| 48 | 48 | */ |
| 49 | - public function now(UserInterface|null $user = null): TimestampInterface; |
|
| 49 | + public function now(UserInterface | null $user = null): TimestampInterface; |
|
| 50 | 50 | } |
@@ -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 | |