From 2e5cd540a6febc1e7e97dc093b4598110a1f94f9 Mon Sep 17 00:00:00 2001 From: arthurpar06 Date: Fri, 24 May 2024 12:03:50 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/Filament/Plugins/ModuleLinksPlugin.php | 7 ++----- app/Filament/Resources/PirepResource.php | 1 - app/Providers/Filament/AdminPanelProvider.php | 2 +- config/money.php | 5 ++--- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/app/Filament/Plugins/ModuleLinksPlugin.php b/app/Filament/Plugins/ModuleLinksPlugin.php index 1eed8dea8..4b3502ee7 100644 --- a/app/Filament/Plugins/ModuleLinksPlugin.php +++ b/app/Filament/Plugins/ModuleLinksPlugin.php @@ -9,7 +9,6 @@ class ModuleLinksPlugin implements Plugin { - public function getId(): string { return 'module-links'; @@ -23,11 +22,10 @@ public static function make(): static public function register(Panel $panel): void { $panel->renderHook('panels::topbar.start', function () { - return view('filament.plugins.module-links', [ 'current_panel' => Filament::getCurrentPanel(), - 'panels' => Filament::getPanels(), - 'old_links' => array_filter(app(ModuleService::class)->getAdminLinks(), static fn (array $link): bool => !str_contains($link['title'], 'Sample')) + 'panels' => Filament::getPanels(), + 'old_links' => array_filter(app(ModuleService::class)->getAdminLinks(), static fn (array $link): bool => !str_contains($link['title'], 'Sample')), ]); }); } @@ -36,5 +34,4 @@ public function boot(Panel $panel): void { // } - } diff --git a/app/Filament/Resources/PirepResource.php b/app/Filament/Resources/PirepResource.php index ca8e9df08..00ac95272 100644 --- a/app/Filament/Resources/PirepResource.php +++ b/app/Filament/Resources/PirepResource.php @@ -12,7 +12,6 @@ use App\Repositories\AirportRepository; use App\Services\PirepService; use App\Support\Units\Time; -use Filament\Facades\Filament; use Filament\Forms; use Filament\Forms\Components\DatePicker; use Filament\Forms\Form; diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index a8abbae62..6ae6beb7d 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -72,7 +72,7 @@ public function panel(Panel $panel): Panel FilamentShieldPlugin::make(), FilamentSpatieLaravelBackupPlugin::make() ->usingPage(Backups::class), - ModuleLinksPlugin::make() + ModuleLinksPlugin::make(), ]) ->bootUsing(function () { activity()->enableLogging(); diff --git a/config/money.php b/config/money.php index d09e84578..eb97438da 100644 --- a/config/money.php +++ b/config/money.php @@ -1,12 +1,11 @@ [ - 'currency' => env('MONEY_DEFAULTS_CURRENCY', 'USD'), + 'currency' => env('MONEY_DEFAULTS_CURRENCY', 'USD'), - 'convert' => env('MONEY_DEFAULTS_CONVERT', false), + 'convert' => env('MONEY_DEFAULTS_CONVERT', false), ],