summaryrefslogtreecommitdiff
path: root/app/Statistics/Google
diff options
context:
space:
mode:
Diffstat (limited to 'app/Statistics/Google')
-rw-r--r--app/Statistics/Google/ChartBirth.php2
-rw-r--r--app/Statistics/Google/ChartCommonGiven.php2
-rw-r--r--app/Statistics/Google/ChartCommonSurname.php2
-rw-r--r--app/Statistics/Google/ChartDeath.php2
-rw-r--r--app/Statistics/Google/ChartDivorce.php2
-rw-r--r--app/Statistics/Google/ChartFamilyLargest.php4
-rw-r--r--app/Statistics/Google/ChartFamilyWithSources.php2
-rw-r--r--app/Statistics/Google/ChartIndividualWithSources.php2
-rw-r--r--app/Statistics/Google/ChartMarriage.php2
-rw-r--r--app/Statistics/Google/ChartMedia.php2
-rw-r--r--app/Statistics/Google/ChartMortality.php2
-rw-r--r--app/Statistics/Google/ChartSex.php4
12 files changed, 14 insertions, 14 deletions
diff --git a/app/Statistics/Google/ChartBirth.php b/app/Statistics/Google/ChartBirth.php
index 7549d09b67..32aa1a499d 100644
--- a/app/Statistics/Google/ChartBirth.php
+++ b/app/Statistics/Google/ChartBirth.php
@@ -86,7 +86,7 @@ class ChartBirth
*
* @return string
*/
- public function chartBirth(string $color_from = null, string $color_to = null): string
+ public function chartBirth(string|null $color_from = null, string|null $color_to = null): string
{
$color_from ??= 'ffffff';
$color_to ??= '84beff';
diff --git a/app/Statistics/Google/ChartCommonGiven.php b/app/Statistics/Google/ChartCommonGiven.php
index 735b2f7b65..3e032b6617 100644
--- a/app/Statistics/Google/ChartCommonGiven.php
+++ b/app/Statistics/Google/ChartCommonGiven.php
@@ -53,7 +53,7 @@ class ChartCommonGiven
public function chartCommonGiven(
int $tot_indi,
array $given,
- string $color_from = null,
+ string|null $color_from = null,
string $color_to = null
): string {
$color_from ??= 'ffffff';
diff --git a/app/Statistics/Google/ChartCommonSurname.php b/app/Statistics/Google/ChartCommonSurname.php
index afa930f925..69566aa620 100644
--- a/app/Statistics/Google/ChartCommonSurname.php
+++ b/app/Statistics/Google/ChartCommonSurname.php
@@ -111,7 +111,7 @@ class ChartCommonSurname
public function chartCommonSurnames(
int $tot_indi,
array $all_surnames,
- string $color_from = null,
+ string|null $color_from = null,
string $color_to = null
): string {
$color_from ??= 'ffffff';
diff --git a/app/Statistics/Google/ChartDeath.php b/app/Statistics/Google/ChartDeath.php
index 739beb2702..e513ea2291 100644
--- a/app/Statistics/Google/ChartDeath.php
+++ b/app/Statistics/Google/ChartDeath.php
@@ -86,7 +86,7 @@ class ChartDeath
*
* @return string
*/
- public function chartDeath(string $color_from = null, string $color_to = null): string
+ public function chartDeath(string|null $color_from = null, string|null $color_to = null): string
{
$color_from ??= 'ffffff';
$color_to ??= '84beff';
diff --git a/app/Statistics/Google/ChartDivorce.php b/app/Statistics/Google/ChartDivorce.php
index 6aa83e6db4..2da03bbfb5 100644
--- a/app/Statistics/Google/ChartDivorce.php
+++ b/app/Statistics/Google/ChartDivorce.php
@@ -86,7 +86,7 @@ class ChartDivorce
*
* @return string
*/
- public function chartDivorce(string $color_from = null, string $color_to = null): string
+ public function chartDivorce(string|null $color_from = null, string|null $color_to = null): string
{
$color_from ??= 'ffffff';
$color_to ??= '84beff';
diff --git a/app/Statistics/Google/ChartFamilyLargest.php b/app/Statistics/Google/ChartFamilyLargest.php
index 40a7423e32..a2890b719e 100644
--- a/app/Statistics/Google/ChartFamilyLargest.php
+++ b/app/Statistics/Google/ChartFamilyLargest.php
@@ -78,8 +78,8 @@ class ChartFamilyLargest
* @return string
*/
public function chartLargestFamilies(
- string $color_from = null,
- string $color_to = null,
+ string|null $color_from = null,
+ string|null $color_to = null,
int $total = 10
): string {
$color_from ??= 'ffffff';
diff --git a/app/Statistics/Google/ChartFamilyWithSources.php b/app/Statistics/Google/ChartFamilyWithSources.php
index 9caffb9144..09683e5cd4 100644
--- a/app/Statistics/Google/ChartFamilyWithSources.php
+++ b/app/Statistics/Google/ChartFamilyWithSources.php
@@ -53,7 +53,7 @@ class ChartFamilyWithSources
public function chartFamsWithSources(
int $tot_fam,
int $tot_fam_source,
- string $color_from = null,
+ string|null $color_from = null,
string $color_to = null
): string {
$color_from ??= 'ffffff';
diff --git a/app/Statistics/Google/ChartIndividualWithSources.php b/app/Statistics/Google/ChartIndividualWithSources.php
index 73dd9a485b..a3f0da9d79 100644
--- a/app/Statistics/Google/ChartIndividualWithSources.php
+++ b/app/Statistics/Google/ChartIndividualWithSources.php
@@ -53,7 +53,7 @@ class ChartIndividualWithSources
public function chartIndisWithSources(
int $tot_indi,
int $tot_indi_source,
- string $color_from = null,
+ string|null $color_from = null,
string $color_to = null
): string {
$color_from ??= 'ffffff';
diff --git a/app/Statistics/Google/ChartMarriage.php b/app/Statistics/Google/ChartMarriage.php
index a811191e3b..fc6884a44e 100644
--- a/app/Statistics/Google/ChartMarriage.php
+++ b/app/Statistics/Google/ChartMarriage.php
@@ -86,7 +86,7 @@ class ChartMarriage
*
* @return string
*/
- public function chartMarriage(string $color_from = null, string $color_to = null): string
+ public function chartMarriage(string|null $color_from = null, string|null $color_to = null): string
{
$color_from ??= 'ffffff';
$color_to ??= '84beff';
diff --git a/app/Statistics/Google/ChartMedia.php b/app/Statistics/Google/ChartMedia.php
index dd6bfa8b27..0f1570cdd5 100644
--- a/app/Statistics/Google/ChartMedia.php
+++ b/app/Statistics/Google/ChartMedia.php
@@ -52,7 +52,7 @@ class ChartMedia
*/
public function chartMedia(
array $media,
- string $color_from = null,
+ string|null $color_from = null,
string $color_to = null
): string {
$color_from ??= 'ffffff';
diff --git a/app/Statistics/Google/ChartMortality.php b/app/Statistics/Google/ChartMortality.php
index b489e36c31..5763a3d272 100644
--- a/app/Statistics/Google/ChartMortality.php
+++ b/app/Statistics/Google/ChartMortality.php
@@ -53,7 +53,7 @@ class ChartMortality
public function chartMortality(
int $tot_l,
int $tot_d,
- string $color_living = null,
+ string|null $color_living = null,
string $color_dead = null
): string {
$color_living ??= '#ffffff';
diff --git a/app/Statistics/Google/ChartSex.php b/app/Statistics/Google/ChartSex.php
index 6ed5cf3ea0..a92ee9c66e 100644
--- a/app/Statistics/Google/ChartSex.php
+++ b/app/Statistics/Google/ChartSex.php
@@ -42,8 +42,8 @@ class ChartSex
int $tot_m,
int $tot_f,
int $tot_u,
- string $color_female = null,
- string $color_male = null,
+ string|null $color_female = null,
+ string|null $color_male = null,
string $color_unknown = null
): string {
$color_female ??= '#ffd1dc';