From 30c0a93855b22091fa1aebf19b4375ee97d41c6e Mon Sep 17 00:00:00 2001 From: daurensky Date: Mon, 12 Feb 2024 09:46:44 +0000 Subject: [PATCH] Fix styling --- src/FilamentPlugin.php | 4 ++-- src/LocalizationsServiceProvider.php | 6 +++--- src/UI/Filament/Resources/LocalizationResource.php | 14 +++++++------- .../Pages/ListLocalization.php | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/FilamentPlugin.php b/src/FilamentPlugin.php index 3835575..aa72d15 100644 --- a/src/FilamentPlugin.php +++ b/src/FilamentPlugin.php @@ -2,9 +2,9 @@ namespace AdminKit\Localizations; -use Filament\Panel; -use Filament\Contracts\Plugin; use AdminKit\Localizations\UI\Filament\Resources\LocalizationResource; +use Filament\Contracts\Plugin; +use Filament\Panel; class FilamentPlugin implements Plugin { diff --git a/src/LocalizationsServiceProvider.php b/src/LocalizationsServiceProvider.php index 0f06c30..1e9d69f 100644 --- a/src/LocalizationsServiceProvider.php +++ b/src/LocalizationsServiceProvider.php @@ -2,10 +2,10 @@ namespace AdminKit\Localizations; -use Spatie\LaravelPackageTools\Package; -use Spatie\LaravelPackageTools\PackageServiceProvider; use AdminKit\Localizations\Commands\LocalizationsCommand; use AdminKit\Localizations\Providers\RouteServiceProvider; +use Spatie\LaravelPackageTools\Package; +use Spatie\LaravelPackageTools\PackageServiceProvider; class LocalizationsServiceProvider extends PackageServiceProvider { @@ -34,7 +34,7 @@ public function registeringPackage() protected function registerConfigs(): self { - $this->mergeConfigFrom(__DIR__ . '/../config/filesystems_disks.php', 'filesystems.disks'); + $this->mergeConfigFrom(__DIR__.'/../config/filesystems_disks.php', 'filesystems.disks'); return $this; } diff --git a/src/UI/Filament/Resources/LocalizationResource.php b/src/UI/Filament/Resources/LocalizationResource.php index e1e6ff8..074d4b9 100644 --- a/src/UI/Filament/Resources/LocalizationResource.php +++ b/src/UI/Filament/Resources/LocalizationResource.php @@ -2,16 +2,16 @@ namespace AdminKit\Localizations\UI\Filament\Resources; -use Filament\Forms; -use Filament\Tables; -use Filament\Forms\Form; -use Filament\Tables\Table; -use Filament\Resources\Resource; use AdminKit\Core\Facades\AdminKit; -use Filament\Tables\Columns\TextColumn; use AdminKit\Localizations\Models\Localization; use AdminKit\Localizations\UI\Filament\Resources\LocalizationResource\Pages; use AdminKit\Localizations\UI\Filament\Resources\Widgets\LocalizationInformer; +use Filament\Forms; +use Filament\Forms\Form; +use Filament\Resources\Resource; +use Filament\Tables; +use Filament\Tables\Columns\TextColumn; +use Filament\Tables\Table; class LocalizationResource extends Resource { @@ -46,7 +46,7 @@ public static function table(Table $table): Table $columns = []; foreach (AdminKit::locales() as $locale) { $columns[] = Tables\Columns\TextColumn::make("content.$locale") - ->getStateUsing(fn(Localization $record) => $record->getTranslation('content', $locale)) + ->getStateUsing(fn (Localization $record) => $record->getTranslation('content', $locale)) ->label($locale) ->wrap(); } diff --git a/src/UI/Filament/Resources/LocalizationResource/Pages/ListLocalization.php b/src/UI/Filament/Resources/LocalizationResource/Pages/ListLocalization.php index 3e218c6..0094f6a 100644 --- a/src/UI/Filament/Resources/LocalizationResource/Pages/ListLocalization.php +++ b/src/UI/Filament/Resources/LocalizationResource/Pages/ListLocalization.php @@ -6,8 +6,8 @@ use AdminKit\Localizations\Models\Localization; use AdminKit\Localizations\UI\Filament\Resources\LocalizationResource; use AdminKit\Localizations\UI\Filament\Resources\Widgets\LocalizationInformer; -use Filament\Notifications\Notification; use Filament\Actions; +use Filament\Notifications\Notification; use Filament\Resources\Pages\ListRecords; use Illuminate\Support\Facades\File;