From 6bc290af862d57211604e029d38cc801da91e657 Mon Sep 17 00:00:00 2001 From: JibayMcs Date: Tue, 6 Aug 2024 12:24:46 +0000 Subject: [PATCH] Fix styling --- src/FilamentTourPlugin.php | 4 +--- src/Livewire/FilamentTourWidget.php | 4 ++-- src/Tour/HasTour.php | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/FilamentTourPlugin.php b/src/FilamentTourPlugin.php index bce271e..be722b9 100644 --- a/src/FilamentTourPlugin.php +++ b/src/FilamentTourPlugin.php @@ -41,9 +41,7 @@ public function register(Panel $panel): void $panel->renderHook('panels::body.start', fn () => Blade::render('')); } - public function boot(Panel $panel): void - { - } + public function boot(Panel $panel): void {} public function onlyVisibleOnce(bool $onlyVisibleOnce = true): self { diff --git a/src/Livewire/FilamentTourWidget.php b/src/Livewire/FilamentTourWidget.php index 23ba410..f75659f 100644 --- a/src/Livewire/FilamentTourWidget.php +++ b/src/Livewire/FilamentTourWidget.php @@ -51,11 +51,11 @@ public function load(): void } foreach ($classesUsingHasTour as $class) { - $this->tours = array_merge($this->tours, (new $class())->constructTours($class)); + $this->tours = array_merge($this->tours, (new $class)->constructTours($class)); } foreach ($classesUsingHasHighlight as $class) { - $this->highlights = array_merge($this->highlights, (new $class())->constructHighlights($class)); + $this->highlights = array_merge($this->highlights, (new $class)->constructHighlights($class)); } $this->dispatch('filament-tour::loaded-elements', diff --git a/src/Tour/HasTour.php b/src/Tour/HasTour.php index 52dca21..021797b 100644 --- a/src/Tour/HasTour.php +++ b/src/Tour/HasTour.php @@ -43,7 +43,7 @@ public function constructTours($class): array ], ]; - if (!$tour->hasDisabledEvents()) { + if (! $tour->hasDisabledEvents()) { $data[$item]['events'] = [ 'redirectOnNext' => $step->getRedirectOnNext(), 'clickOnNext' => $step->getClickOnNext(),