summaryrefslogtreecommitdiff
path: root/app/Statistics.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Statistics.php')
-rw-r--r--app/Statistics.php38
1 files changed, 19 insertions, 19 deletions
diff --git a/app/Statistics.php b/app/Statistics.php
index a8051a6dd8..4ab7c815e8 100644
--- a/app/Statistics.php
+++ b/app/Statistics.php
@@ -320,7 +320,7 @@ class Statistics implements
* @return string
*/
public function chartIndisWithSources(
- string $color_from = null,
+ string|null $color_from = null,
string $color_to = null
): string {
return $this->individual_repository->chartIndisWithSources($color_from, $color_to);
@@ -373,7 +373,7 @@ class Statistics implements
* @return string
*/
public function chartFamsWithSources(
- string $color_from = null,
+ string|null $color_from = null,
string $color_to = null
): string {
return $this->individual_repository->chartFamsWithSources($color_from, $color_to);
@@ -585,8 +585,8 @@ class Statistics implements
* @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 {
return $this->individual_repository->chartSex($color_female, $color_male, $color_unknown);
@@ -630,7 +630,7 @@ class Statistics implements
*
* @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
{
return $this->individual_repository->chartMortality($color_living, $color_dead);
}
@@ -801,7 +801,7 @@ class Statistics implements
*
* @return string
*/
- public function chartMedia(string $color_from = null, string $color_to = null): string
+ public function chartMedia(string|null $color_from = null, string|null $color_to = null): string
{
return $this->media_repository->chartMedia($color_from, $color_to);
}
@@ -953,7 +953,7 @@ class Statistics implements
*
* @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 $this->individual_repository->statsBirth($color_from, $color_to);
}
@@ -1050,7 +1050,7 @@ class Statistics implements
*
* @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 $this->individual_repository->statsDeath($color_from, $color_to);
}
@@ -1472,7 +1472,7 @@ class Statistics implements
*
* @return string
*/
- public function statsMarr(string $color_from = null, string $color_to = null): string
+ public function statsMarr(string|null $color_from = null, string|null $color_to = null): string
{
return $this->family_repository->statsMarr($color_from, $color_to);
}
@@ -1547,7 +1547,7 @@ class Statistics implements
*
* @return string
*/
- public function statsDiv(string $color_from = null, string $color_to = null): string
+ public function statsDiv(string|null $color_from = null, string|null $color_to = null): string
{
return $this->family_repository->statsDiv($color_from, $color_to);
}
@@ -1982,8 +1982,8 @@ class Statistics implements
* @return string
*/
public function chartLargestFamilies(
- string $color_from = null,
- string $color_to = null,
+ string|null $color_from = null,
+ string|null $color_to = null,
string $total = '10'
): string {
return $this->family_repository->chartLargestFamilies($color_from, $color_to, (int) $total);
@@ -2193,8 +2193,8 @@ class Statistics implements
* @return string
*/
public function chartCommonSurnames(
- string $color_from = null,
- string $color_to = null,
+ string|null $color_from = null,
+ string|null $color_to = null,
string $number_of_surnames = '10'
): string {
return $this->individual_repository
@@ -2429,8 +2429,8 @@ class Statistics implements
* @return string
*/
public function chartCommonGiven(
- string $color_from = null,
- string $color_to = null,
+ string|null $color_from = null,
+ string|null $color_to = null,
string $maxtoshow = '7'
): string {
return $this->individual_repository->chartCommonGiven($color_from, $color_to, (int) $maxtoshow);
@@ -2555,7 +2555,7 @@ class Statistics implements
*
* @return string
*/
- public function latestUserRegDate(string $format = null): string
+ public function latestUserRegDate(string|null $format = null): string
{
return $this->latest_user_repository->latestUserRegDate($format);
}
@@ -2565,7 +2565,7 @@ class Statistics implements
*
* @return string
*/
- public function latestUserRegTime(string $format = null): string
+ public function latestUserRegTime(string|null $format = null): string
{
return $this->latest_user_repository->latestUserRegTime($format);
}
@@ -2576,7 +2576,7 @@ class Statistics implements
*
* @return string
*/
- public function latestUserLoggedin(string $yes = null, string $no = null): string
+ public function latestUserLoggedin(string|null $yes = null, string|null $no = null): string
{
return $this->latest_user_repository->latestUserLoggedin($yes, $no);
}