Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
schmeits authored and github-actions[bot] committed Sep 5, 2024
1 parent e462ec9 commit ea5d5c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Concerns/UmamiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/FilamentUmami.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class FilamentUmami
*/
public function __construct()
{
$this->client = new UmamiClient();
$this->client = new UmamiClient;
}

public function getClient(): UmamiClient
Expand Down
2 changes: 1 addition & 1 deletion src/FilamentUmamiServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function packageBooted(): void
WidgetManager::make()->boot();

// Testing
Testable::mixin(new TestsFilamentUmami());
Testable::mixin(new TestsFilamentUmami);
}

protected function getAssetPackageName(): ?string
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/GetFilterForWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit ea5d5c2

Please sign in to comment.