From 7048df5b26543bd5a322f05a22ed01556f8d95f7 Mon Sep 17 00:00:00 2001 From: murdercode Date: Thu, 7 Mar 2024 13:20:43 +0000 Subject: [PATCH] Fix styling --- src/Abstract/GoogleAnalyticsCounter.php | 4 ++-- src/Abstract/GoogleAnalyticsLineChart.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Abstract/GoogleAnalyticsCounter.php b/src/Abstract/GoogleAnalyticsCounter.php index ce00140..aedd0e8 100644 --- a/src/Abstract/GoogleAnalyticsCounter.php +++ b/src/Abstract/GoogleAnalyticsCounter.php @@ -12,7 +12,7 @@ class GoogleAnalyticsCounter extends Value { public $name; - public function __construct(string $name = null) + public function __construct(?string $name = null) { parent::__construct(); $this->name = $name ?? __($this->title); @@ -30,7 +30,7 @@ public function ranges() 30 => Nova::__('30 Days'), 60 => Nova::__('60 Days'), 90 => Nova::__('90 Days'), - 365 => Nova::__('365 Days') + 365 => Nova::__('365 Days'), ]; } diff --git a/src/Abstract/GoogleAnalyticsLineChart.php b/src/Abstract/GoogleAnalyticsLineChart.php index 96c7708..c446edd 100644 --- a/src/Abstract/GoogleAnalyticsLineChart.php +++ b/src/Abstract/GoogleAnalyticsLineChart.php @@ -14,7 +14,7 @@ class GoogleAnalyticsLineChart extends Trend { public $name; - public function __construct(string $name = null) + public function __construct(?string $name = null) { parent::__construct(); $this->name = $name ?? __($this->title);