From 1eaba981ae49fcd4a0437a2a6e2e93b03013d696 Mon Sep 17 00:00:00 2001 From: Adam Weston Date: Thu, 17 Apr 2025 14:35:21 -0400 Subject: [PATCH] Fix: finals and type conflicts --- .../HandlesOverlookWidgetCustomization.php | 2 -- src/OverlookPlugin.php | 34 +++++++++---------- src/OverlookServiceProvider.php | 4 +-- src/Widgets/OverlookWidget.php | 6 ++-- 4 files changed, 19 insertions(+), 27 deletions(-) diff --git a/src/Concerns/HandlesOverlookWidgetCustomization.php b/src/Concerns/HandlesOverlookWidgetCustomization.php index ba3fa37..20ce769 100644 --- a/src/Concerns/HandlesOverlookWidgetCustomization.php +++ b/src/Concerns/HandlesOverlookWidgetCustomization.php @@ -1,7 +1,5 @@ shouldSortAlphabetical = $condition; return $this; } - public function abbreviateCount(bool|Closure|null $condition = true): static + public function abbreviateCount(bool | Closure | null $condition = true): static { $this->shouldAbbreviateCount = $condition; return $this; } - public function excludes(array|Closure $resources): static + public function excludes(array | Closure $resources): static { $this->excludes = $resources; @@ -101,7 +99,7 @@ public function getSort(): int return $this->evaluate($this->sort) ?? -1; } - public function includes(array|Closure $resources): static + public function includes(array | Closure $resources): static { $this->includes = $resources; @@ -123,21 +121,21 @@ public function shouldSortAlphabetical(): bool return $this->evaluate($this->shouldSortAlphabetical) ?? false; } - public function sort(int|Closure $sort): static + public function sort(int | Closure $sort): static { $this->sort = $sort; return $this; } - public function tooltips(bool|Closure|null $condition = true): static + public function tooltips(bool | Closure | null $condition = true): static { $this->shouldShowTooltips = $condition; return $this; } - public function icons(array|Closure|null $icons): static + public function icons(array | Closure | null $icons): static { $this->icons = $icons; diff --git a/src/OverlookServiceProvider.php b/src/OverlookServiceProvider.php index 62d4043..8f3a11f 100644 --- a/src/OverlookServiceProvider.php +++ b/src/OverlookServiceProvider.php @@ -1,14 +1,12 @@