@@ -724,7 +724,7 @@ discard block |
||
724 | 724 | * |
725 | 725 | * @return string |
726 | 726 | */ |
727 | - public function statsBirth(string|null $color_from = null, string|null $color_to = null): string |
|
727 | + public function statsBirth(string | null $color_from = null, string | null $color_to = null): string |
|
728 | 728 | { |
729 | 729 | return (new ChartBirth($this->century_service, $this->color_service, $this->tree)) |
730 | 730 | ->chartBirth($color_from, $color_to); |
@@ -782,7 +782,7 @@ discard block |
||
782 | 782 | * |
783 | 783 | * @return string |
784 | 784 | */ |
785 | - public function statsDeath(string|null $color_from = null, string|null $color_to = null): string |
|
785 | + public function statsDeath(string | null $color_from = null, string | null $color_to = null): string |
|
786 | 786 | { |
787 | 787 | return (new ChartDeath($this->century_service, $this->color_service, $this->tree)) |
788 | 788 | ->chartDeath($color_from, $color_to); |
@@ -1817,8 +1817,8 @@ discard block |
||
1817 | 1817 | * @return string |
1818 | 1818 | */ |
1819 | 1819 | public function chartCommonGiven( |
1820 | - string|null $color_from = null, |
|
1821 | - string|null $color_to = null, |
|
1820 | + string | null $color_from = null, |
|
1821 | + string | null $color_to = null, |
|
1822 | 1822 | int $maxtoshow = 7 |
1823 | 1823 | ): string { |
1824 | 1824 | $tot_indi = $this->totalIndividualsQuery(); |
@@ -1842,8 +1842,8 @@ discard block |
||
1842 | 1842 | * @return string |
1843 | 1843 | */ |
1844 | 1844 | public function chartCommonSurnames( |
1845 | - string|null $color_from = null, |
|
1846 | - string|null $color_to = null, |
|
1845 | + string | null $color_from = null, |
|
1846 | + string | null $color_to = null, |
|
1847 | 1847 | int $number_of_surnames = 10 |
1848 | 1848 | ): string { |
1849 | 1849 | $tot_indi = $this->totalIndividualsQuery(); |
@@ -1868,7 +1868,7 @@ discard block |
||
1868 | 1868 | * |
1869 | 1869 | * @return string |
1870 | 1870 | */ |
1871 | - public function chartMortality(string|null $color_living = null, string|null $color_dead = null): string |
|
1871 | + public function chartMortality(string | null $color_living = null, string | null $color_dead = null): string |
|
1872 | 1872 | { |
1873 | 1873 | $tot_l = $this->totalLivingQuery(); |
1874 | 1874 | $tot_d = $this->totalDeceasedQuery(); |
@@ -1886,7 +1886,7 @@ discard block |
||
1886 | 1886 | * @return string |
1887 | 1887 | */ |
1888 | 1888 | public function chartIndisWithSources( |
1889 | - string|null $color_from = null, |
|
1889 | + string | null $color_from = null, |
|
1890 | 1890 | string $color_to = null |
1891 | 1891 | ): string { |
1892 | 1892 | $tot_indi = $this->totalIndividualsQuery(); |
@@ -1905,7 +1905,7 @@ discard block |
||
1905 | 1905 | * @return string |
1906 | 1906 | */ |
1907 | 1907 | public function chartFamsWithSources( |
1908 | - string|null $color_from = null, |
|
1908 | + string | null $color_from = null, |
|
1909 | 1909 | string $color_to = null |
1910 | 1910 | ): string { |
1911 | 1911 | $tot_fam = $this->totalFamiliesQuery(); |
@@ -1923,8 +1923,8 @@ discard block |
||
1923 | 1923 | * @return string |
1924 | 1924 | */ |
1925 | 1925 | public function chartSex( |
1926 | - string|null $color_female = null, |
|
1927 | - string|null $color_male = null, |
|
1926 | + string | null $color_female = null, |
|
1927 | + string | null $color_male = null, |
|
1928 | 1928 | string $color_unknown = null |
1929 | 1929 | ): string { |
1930 | 1930 | $tot_m = $this->totalSexMalesQuery(); |
@@ -244,7 +244,7 @@ |
||
244 | 244 | * |
245 | 245 | * @return string |
246 | 246 | */ |
247 | - public function chartMedia(string|null $color_from = null, string|null $color_to = null): string |
|
247 | + public function chartMedia(string | null $color_from = null, string | null $color_to = null): string |
|
248 | 248 | { |
249 | 249 | $media = DB::table('media_file') |
250 | 250 | ->where('m_file', '=', $this->tree->id()) |
@@ -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); |
@@ -188,8 +188,8 @@ |
||
188 | 188 | * @return string |
189 | 189 | */ |
190 | 190 | public function chartSex( |
191 | - string|null $color_female = null, |
|
192 | - string|null $color_male = null, |
|
191 | + string | null $color_female = null, |
|
192 | + string | null $color_male = null, |
|
193 | 193 | string $color_unknown = null |
194 | 194 | ): string; |
195 | 195 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @return string |
54 | 54 | */ |
55 | - public function latestUserRegDate(string|null $format = null): string; |
|
55 | + public function latestUserRegDate(string | null $format = null): string; |
|
56 | 56 | |
57 | 57 | /** |
58 | 58 | * Find the timestamp of the latest user to register. |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * |
62 | 62 | * @return string |
63 | 63 | */ |
64 | - public function latestUserRegTime(string|null $format = null): string; |
|
64 | + public function latestUserRegTime(string | null $format = null): string; |
|
65 | 65 | |
66 | 66 | /** |
67 | 67 | * Is the most recently registered user logged in right now? |
@@ -71,5 +71,5 @@ discard block |
||
71 | 71 | * |
72 | 72 | * @return string |
73 | 73 | */ |
74 | - public function latestUserLoggedin(string|null $yes = null, string|null $no = null): string; |
|
74 | + public function latestUserLoggedin(string | null $yes = null, string | null $no = null): string; |
|
75 | 75 | } |
@@ -172,5 +172,5 @@ |
||
172 | 172 | * |
173 | 173 | * @return string |
174 | 174 | */ |
175 | - public function chartMedia(string|null $color_from = null, string|null $color_to = null): string; |
|
175 | + public function chartMedia(string | null $color_from = null, string | null $color_to = null): string; |
|
176 | 176 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * |
111 | 111 | * @return string |
112 | 112 | */ |
113 | - public function latestUserRegDate(string|null $format = null): string |
|
113 | + public function latestUserRegDate(string | null $format = null): string |
|
114 | 114 | { |
115 | 115 | $format ??= I18N::dateFormat(); |
116 | 116 | $user = $this->latestUserQuery(); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @return string |
126 | 126 | */ |
127 | - public function latestUserRegTime(string|null $format = null): string |
|
127 | + public function latestUserRegTime(string | null $format = null): string |
|
128 | 128 | { |
129 | 129 | $format ??= str_replace('%', '', I18N::timeFormat()); |
130 | 130 | $user = $this->latestUserQuery(); |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | * |
139 | 139 | * @return string |
140 | 140 | */ |
141 | - public function latestUserLoggedin(string|null $yes = null, string|null $no = null): string |
|
141 | + public function latestUserLoggedin(string | null $yes = null, string | null $no = null): string |
|
142 | 142 | { |
143 | 143 | $yes ??= I18N::translate('yes'); |
144 | 144 | $no ??= I18N::translate('no'); |
@@ -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 |