summaryrefslogtreecommitdiff
path: root/app/Statistics/Repository/IndividualRepository.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Statistics/Repository/IndividualRepository.php')
-rw-r--r--app/Statistics/Repository/IndividualRepository.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/app/Statistics/Repository/IndividualRepository.php b/app/Statistics/Repository/IndividualRepository.php
index abb4a789e2..e3e56b4577 100644
--- a/app/Statistics/Repository/IndividualRepository.php
+++ b/app/Statistics/Repository/IndividualRepository.php
@@ -724,7 +724,7 @@ class IndividualRepository implements IndividualRepositoryInterface
*
* @return string
*/
- public function statsBirth(string $color_from = null, string $color_to = null): string
+ public function statsBirth(string|null $color_from = null, string|null $color_to = null): string
{
return (new ChartBirth($this->century_service, $this->color_service, $this->tree))
->chartBirth($color_from, $color_to);
@@ -782,7 +782,7 @@ class IndividualRepository implements IndividualRepositoryInterface
*
* @return string
*/
- public function statsDeath(string $color_from = null, string $color_to = null): string
+ public function statsDeath(string|null $color_from = null, string|null $color_to = null): string
{
return (new ChartDeath($this->century_service, $this->color_service, $this->tree))
->chartDeath($color_from, $color_to);
@@ -1817,8 +1817,8 @@ class IndividualRepository implements IndividualRepositoryInterface
* @return string
*/
public function chartCommonGiven(
- string $color_from = null,
- string $color_to = null,
+ string|null $color_from = null,
+ string|null $color_to = null,
int $maxtoshow = 7
): string {
$tot_indi = $this->totalIndividualsQuery();
@@ -1842,8 +1842,8 @@ class IndividualRepository implements IndividualRepositoryInterface
* @return string
*/
public function chartCommonSurnames(
- string $color_from = null,
- string $color_to = null,
+ string|null $color_from = null,
+ string|null $color_to = null,
int $number_of_surnames = 10
): string {
$tot_indi = $this->totalIndividualsQuery();
@@ -1868,7 +1868,7 @@ class IndividualRepository implements IndividualRepositoryInterface
*
* @return string
*/
- public function chartMortality(string $color_living = null, string $color_dead = null): string
+ public function chartMortality(string|null $color_living = null, string|null $color_dead = null): string
{
$tot_l = $this->totalLivingQuery();
$tot_d = $this->totalDeceasedQuery();
@@ -1886,7 +1886,7 @@ class IndividualRepository implements IndividualRepositoryInterface
* @return string
*/
public function chartIndisWithSources(
- string $color_from = null,
+ string|null $color_from = null,
string $color_to = null
): string {
$tot_indi = $this->totalIndividualsQuery();
@@ -1905,7 +1905,7 @@ class IndividualRepository implements IndividualRepositoryInterface
* @return string
*/
public function chartFamsWithSources(
- string $color_from = null,
+ string|null $color_from = null,
string $color_to = null
): string {
$tot_fam = $this->totalFamiliesQuery();
@@ -1923,8 +1923,8 @@ class IndividualRepository implements IndividualRepositoryInterface
* @return string
*/
public function chartSex(
- string $color_female = null,
- string $color_male = null,
+ string|null $color_female = null,
+ string|null $color_male = null,
string $color_unknown = null
): string {
$tot_m = $this->totalSexMalesQuery();