@@ -53,7 +53,7 @@ |
||
53 | 53 | public function chartCommonGiven( |
54 | 54 | int $tot_indi, |
55 | 55 | array $given, |
56 | - string|null $color_from = null, |
|
56 | + string | null $color_from = null, |
|
57 | 57 | string $color_to = null |
58 | 58 | ): string { |
59 | 59 | $color_from ??= 'ffffff'; |
@@ -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'; |
@@ -53,7 +53,7 @@ |
||
53 | 53 | public function chartFamsWithSources( |
54 | 54 | int $tot_fam, |
55 | 55 | int $tot_fam_source, |
56 | - string|null $color_from = null, |
|
56 | + string | null $color_from = null, |
|
57 | 57 | string $color_to = null |
58 | 58 | ): string { |
59 | 59 | $color_from ??= 'ffffff'; |
@@ -53,7 +53,7 @@ |
||
53 | 53 | public function chartMortality( |
54 | 54 | int $tot_l, |
55 | 55 | int $tot_d, |
56 | - string|null $color_living = null, |
|
56 | + string | null $color_living = null, |
|
57 | 57 | string $color_dead = null |
58 | 58 | ): string { |
59 | 59 | $color_living ??= '#ffffff'; |
@@ -111,7 +111,7 @@ |
||
111 | 111 | public function chartCommonSurnames( |
112 | 112 | int $tot_indi, |
113 | 113 | array $all_surnames, |
114 | - string|null $color_from = null, |
|
114 | + string | null $color_from = null, |
|
115 | 115 | string $color_to = null |
116 | 116 | ): string { |
117 | 117 | $color_from ??= 'ffffff'; |
@@ -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'; |
@@ -42,8 +42,8 @@ |
||
42 | 42 | int $tot_m, |
43 | 43 | int $tot_f, |
44 | 44 | int $tot_u, |
45 | - string|null $color_female = null, |
|
46 | - string|null $color_male = null, |
|
45 | + string | null $color_female = null, |
|
46 | + string | null $color_male = null, |
|
47 | 47 | string $color_unknown = null |
48 | 48 | ): string { |
49 | 49 | $color_female ??= '#ffd1dc'; |
@@ -52,7 +52,7 @@ |
||
52 | 52 | */ |
53 | 53 | public function chartMedia( |
54 | 54 | array $media, |
55 | - string|null $color_from = null, |
|
55 | + string | null $color_from = null, |
|
56 | 56 | string $color_to = null |
57 | 57 | ): string { |
58 | 58 | $color_from ??= 'ffffff'; |
@@ -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(); |