diff --git a/src/UI/Filament/Resources/LocalizationResource.php b/src/UI/Filament/Resources/LocalizationResource.php index 2a49376..61f7397 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 { diff --git a/src/UI/Filament/Resources/LocalizationResource/Pages/CreateLocalization.php b/src/UI/Filament/Resources/LocalizationResource/Pages/CreateLocalization.php index fdeb34d..444f23a 100644 --- a/src/UI/Filament/Resources/LocalizationResource/Pages/CreateLocalization.php +++ b/src/UI/Filament/Resources/LocalizationResource/Pages/CreateLocalization.php @@ -2,9 +2,9 @@ namespace AdminKit\Localizations\UI\Filament\Resources\LocalizationResource\Pages; -use Filament\Resources\Pages\CreateRecord; use AdminKit\Localizations\Traits\LocalizationFiles; use AdminKit\Localizations\UI\Filament\Resources\LocalizationResource; +use Filament\Resources\Pages\CreateRecord; class CreateLocalization extends CreateRecord { diff --git a/src/UI/Filament/Resources/LocalizationResource/Pages/EditLocalization.php b/src/UI/Filament/Resources/LocalizationResource/Pages/EditLocalization.php index 20cf3c2..bfb4948 100644 --- a/src/UI/Filament/Resources/LocalizationResource/Pages/EditLocalization.php +++ b/src/UI/Filament/Resources/LocalizationResource/Pages/EditLocalization.php @@ -2,10 +2,10 @@ namespace AdminKit\Localizations\UI\Filament\Resources\LocalizationResource\Pages; -use Filament\Actions; -use Filament\Resources\Pages\EditRecord; use AdminKit\Localizations\Traits\LocalizationFiles; use AdminKit\Localizations\UI\Filament\Resources\LocalizationResource; +use Filament\Actions; +use Filament\Resources\Pages\EditRecord; class EditLocalization extends EditRecord { diff --git a/src/UI/Filament/Resources/LocalizationResource/Pages/ListLocalization.php b/src/UI/Filament/Resources/LocalizationResource/Pages/ListLocalization.php index b5285a3..5c08455 100644 --- a/src/UI/Filament/Resources/LocalizationResource/Pages/ListLocalization.php +++ b/src/UI/Filament/Resources/LocalizationResource/Pages/ListLocalization.php @@ -2,15 +2,14 @@ namespace AdminKit\Localizations\UI\Filament\Resources\LocalizationResource\Pages; -use Filament\Actions; -use Filament\Actions\Action; use AdminKit\Core\Facades\AdminKit; -use Illuminate\Support\Facades\File; -use Filament\Notifications\Notification; -use Filament\Resources\Pages\ListRecords; use AdminKit\Localizations\Models\Localization; use AdminKit\Localizations\UI\Filament\Resources\LocalizationResource; use AdminKit\Localizations\UI\Filament\Resources\Widgets\LocalizationInformer; +use Filament\Actions; +use Filament\Notifications\Notification; +use Filament\Resources\Pages\ListRecords; +use Illuminate\Support\Facades\File; class ListLocalization extends ListRecords { diff --git a/src/UI/Filament/Resources/Widgets/LocalizationInformer.php b/src/UI/Filament/Resources/Widgets/LocalizationInformer.php index f10a501..9c97a54 100644 --- a/src/UI/Filament/Resources/Widgets/LocalizationInformer.php +++ b/src/UI/Filament/Resources/Widgets/LocalizationInformer.php @@ -2,8 +2,8 @@ namespace AdminKit\Localizations\UI\Filament\Resources\Widgets; -use Filament\Widgets\Widget; use AdminKit\Core\Facades\AdminKit; +use Filament\Widgets\Widget; use Illuminate\Contracts\View\View; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Storage; @@ -22,7 +22,7 @@ public function render(): View $exists[$locale] = File::exists($path); if ($exists[$locale]) { - $sizes[$locale] = number_format(File::size($path) / 1024, 2) . ' Kb'; + $sizes[$locale] = number_format(File::size($path) / 1024, 2).' Kb'; } if ($exists[$locale]) {