@@ -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'; |
@@ -686,8 +686,8 @@ discard block |
||
686 | 686 | * @return string |
687 | 687 | */ |
688 | 688 | public function chartLargestFamilies( |
689 | - string|null $color_from = null, |
|
690 | - string|null $color_to = null, |
|
689 | + string | null $color_from = null, |
|
690 | + string | null $color_to = null, |
|
691 | 691 | int $total = 10 |
692 | 692 | ): string { |
693 | 693 | return (new ChartFamilyLargest($this->color_service, $this->tree)) |
@@ -1725,7 +1725,7 @@ discard block |
||
1725 | 1725 | * |
1726 | 1726 | * @return string |
1727 | 1727 | */ |
1728 | - public function statsMarr(string|null $color_from = null, string|null $color_to = null): string |
|
1728 | + public function statsMarr(string | null $color_from = null, string | null $color_to = null): string |
|
1729 | 1729 | { |
1730 | 1730 | return (new ChartMarriage($this->century_service, $this->color_service, $this->tree)) |
1731 | 1731 | ->chartMarriage($color_from, $color_to); |
@@ -1739,7 +1739,7 @@ discard block |
||
1739 | 1739 | * |
1740 | 1740 | * @return string |
1741 | 1741 | */ |
1742 | - public function statsDiv(string|null $color_from = null, string|null $color_to = null): string |
|
1742 | + public function statsDiv(string | null $color_from = null, string | null $color_to = null): string |
|
1743 | 1743 | { |
1744 | 1744 | return (new ChartDivorce($this->century_service, $this->color_service, $this->tree)) |
1745 | 1745 | ->chartDivorce($color_from, $color_to); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * |
51 | 51 | * @return T |
52 | 52 | */ |
53 | - public function remember(string $key, Closure $closure, int|null $ttl = null) |
|
53 | + public function remember(string $key, Closure $closure, int | null $ttl = null) |
|
54 | 54 | { |
55 | 55 | return $this->cache->get(md5($key), static function (ItemInterface $item) use ($closure, $ttl) { |
56 | 56 | $item->expiresAfter($ttl); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * @param string|null $message |
32 | 32 | */ |
33 | - public function __construct(string|null $message = null) |
|
33 | + public function __construct(string | null $message = null) |
|
34 | 34 | { |
35 | 35 | $message ??= I18N::translate('You do not have permission to view this page.'); |
36 | 36 |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * |
81 | 81 | * @param array<string>|int|AbstractCalendarDate $date |
82 | 82 | */ |
83 | - public function __construct(array|int|AbstractCalendarDate $date) |
|
83 | + public function __construct(array | int | AbstractCalendarDate $date) |
|
84 | 84 | { |
85 | 85 | // Construct from an integer (a julian day number) |
86 | 86 | if (is_int($date)) { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | $this->month = static::MONTH_TO_NUMBER[$date[1]] ?? 0; |
98 | 98 | |
99 | 99 | if ($this->month === 0) { |
100 | - $this->day = 0; |
|
100 | + $this->day = 0; |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | $this->year = $this->extractYear($date[0]); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | /** |
43 | 43 | * @param UploadedFileInterface|null $uploaded_file |
44 | 44 | */ |
45 | - public function __construct(UploadedFileInterface|null $uploaded_file) |
|
45 | + public function __construct(UploadedFileInterface | null $uploaded_file) |
|
46 | 46 | { |
47 | 47 | if ($uploaded_file === null) { |
48 | 48 | parent::__construct(I18N::translate('No file was received. Please try again.')); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | /** |
47 | 47 | * Since we know the type, this is quicker than calling Registry::gedcomRecordFactory()->make(). |
48 | 48 | */ |
49 | - public function getRecordByType(string $xref, Tree $tree, string $type): GedcomRecord|null |
|
49 | + public function getRecordByType(string $xref, Tree $tree, string $type): GedcomRecord | null |
|
50 | 50 | { |
51 | 51 | switch ($type) { |
52 | 52 | case Family::RECORD_TYPE: |