From ea5d5c29165821a6639b01c11f6ebfdcb512c266 Mon Sep 17 00:00:00 2001 From: schmeits Date: Thu, 5 Sep 2024 06:47:44 +0000 Subject: [PATCH] Fix styling --- src/Concerns/UmamiClient.php | 2 +- src/FilamentUmami.php | 2 +- src/FilamentUmamiServiceProvider.php | 2 +- src/Traits/GetFilterForWidget.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Concerns/UmamiClient.php b/src/Concerns/UmamiClient.php index 3f6e286..e62abc1 100644 --- a/src/Concerns/UmamiClient.php +++ b/src/Concerns/UmamiClient.php @@ -86,7 +86,7 @@ public function getStats(Filter $filter): array public function getPageViewsAndSessions(): array { - $options = $this->getDefaultOptions(UmamiWebsiteStats::STAT_PAGEVIEWS, new Filter()); + $options = $this->getDefaultOptions(UmamiWebsiteStats::STAT_PAGEVIEWS, new Filter); return $this->getCachedValue('get-pageviews', function () use ($options) { return $this->callWebsiteApi('pageviews', $options); diff --git a/src/FilamentUmami.php b/src/FilamentUmami.php index 11f2e95..842baea 100644 --- a/src/FilamentUmami.php +++ b/src/FilamentUmami.php @@ -19,7 +19,7 @@ class FilamentUmami */ public function __construct() { - $this->client = new UmamiClient(); + $this->client = new UmamiClient; } public function getClient(): UmamiClient diff --git a/src/FilamentUmamiServiceProvider.php b/src/FilamentUmamiServiceProvider.php index 422e82c..811d40b 100644 --- a/src/FilamentUmamiServiceProvider.php +++ b/src/FilamentUmamiServiceProvider.php @@ -45,7 +45,7 @@ public function packageBooted(): void WidgetManager::make()->boot(); // Testing - Testable::mixin(new TestsFilamentUmami()); + Testable::mixin(new TestsFilamentUmami); } protected function getAssetPackageName(): ?string diff --git a/src/Traits/GetFilterForWidget.php b/src/Traits/GetFilterForWidget.php index 222bb79..cfab987 100644 --- a/src/Traits/GetFilterForWidget.php +++ b/src/Traits/GetFilterForWidget.php @@ -39,7 +39,7 @@ public function getFilter() Carbon::parse($dateParts[1])->endOfDay() : now()->endOfDay(); - return (new Filter()) + return (new Filter) ->setFrom($startDate) ->setTo($endDate) ->setLimit($this->getLimit());