diff --git a/Actions/Icon/GetAllIconsAction.php b/Actions/Icon/GetAllIconsAction.php index f738d845..7f46e03c 100755 --- a/Actions/Icon/GetAllIconsAction.php +++ b/Actions/Icon/GetAllIconsAction.php @@ -39,7 +39,7 @@ public function execute(string $context = 'form') foreach ($set['paths'] as $path) { foreach (File::allFiles($path) as $file) { // Simply ignore files that aren't SVGs - if ($file->getExtension() !== 'svg') { + if ('svg' !== $file->getExtension()) { continue; } diff --git a/Datas/SliderDataCollection.php b/Datas/SliderDataCollection.php index b7c1df9d..763a4102 100755 --- a/Datas/SliderDataCollection.php +++ b/Datas/SliderDataCollection.php @@ -15,5 +15,6 @@ class SliderDataCollection extends Data public DataCollection $slider_data; public function __construct( - ) {} + ) { + } } diff --git a/Enums/TableLayoutEnum.php b/Enums/TableLayoutEnum.php index 5711dda4..ae310e3c 100755 --- a/Enums/TableLayoutEnum.php +++ b/Enums/TableLayoutEnum.php @@ -50,14 +50,14 @@ public function getIcon(): ?string public function toggle(): self { // $res = self::LIST === $this ? self::GRID : self::LIST; - $res = $this === self::GRID ? self::LIST : self::GRID; + $res = self::GRID === $this ? self::LIST : self::GRID; return $res; } public function isGridLayout(): bool { - return $this === self::GRID; + return self::GRID === $this; } public function getTableContentGrid(): ?array diff --git a/Filament/Actions/Header/TableLayoutToggleHeaderAction.php b/Filament/Actions/Header/TableLayoutToggleHeaderAction.php index 04568a89..6aa6141a 100755 --- a/Filament/Actions/Header/TableLayoutToggleHeaderAction.php +++ b/Filament/Actions/Header/TableLayoutToggleHeaderAction.php @@ -31,10 +31,10 @@ protected function setUp(): void // ->tooltip(trans('setting::database_connection.actions.database-backup.tooltip')) // ->icon(trans('setting::database_connection.actions.database-backup.icon')) // ->icon($this->list_icon) - ->icon(fn ($livewire) => $livewire->layoutView == 'list' ? $this->list_icon : $this->grid_icon) + ->icon(fn ($livewire) => 'list' == $livewire->layoutView ? $this->list_icon : $this->grid_icon) ->action( function ($livewire) { - $livewire->layoutView = ($livewire->layoutView == 'grid' ? 'list' : 'grid'); + $livewire->layoutView = ('grid' == $livewire->layoutView ? 'list' : 'grid'); } ); } diff --git a/Filament/Blocks/Image.php b/Filament/Blocks/Image.php index 94e32dd4..aab08505 100755 --- a/Filament/Blocks/Image.php +++ b/Filament/Blocks/Image.php @@ -35,7 +35,7 @@ public static function make( ->columnSpanFull(), ] ) - ->columns($context === 'form' ? 2 : 1); + ->columns('form' === $context ? 2 : 1); } public static function getRatios(): array diff --git a/Filament/Blocks/ImageSpatie.php b/Filament/Blocks/ImageSpatie.php index cf2615d6..64389c1c 100755 --- a/Filament/Blocks/ImageSpatie.php +++ b/Filament/Blocks/ImageSpatie.php @@ -60,6 +60,6 @@ function (HasForms $livewire, SpatieMediaLibraryFileUpload $component, Temporary TextInput::make('caption') ->label('didascalia'), ]) - ->columns($context === 'form' ? 2 : 1); + ->columns('form' === $context ? 2 : 1); } } diff --git a/Filament/Blocks/ImagesGallery.php b/Filament/Blocks/ImagesGallery.php index 5cd9b87d..87ab62b6 100755 --- a/Filament/Blocks/ImagesGallery.php +++ b/Filament/Blocks/ImagesGallery.php @@ -76,7 +76,7 @@ public static function make( // TextInput::make('caption') // ->columnSpanFull(), ]) - ->columns($context === 'form' ? 2 : 1); + ->columns('form' === $context ? 2 : 1); } public static function getRatios(): array diff --git a/Filament/Blocks/Slider.php b/Filament/Blocks/Slider.php index 84b1b122..638223f0 100755 --- a/Filament/Blocks/Slider.php +++ b/Filament/Blocks/Slider.php @@ -32,6 +32,6 @@ public static function make( // ->afterStateHydrated(static fn ($state, $set) => $state || $set('level', 'h2')), ] ) - ->columns($context === 'form' ? 2 : 1); + ->columns('form' === $context ? 2 : 1); } } diff --git a/Filament/Blocks/Title.php b/Filament/Blocks/Title.php index 15d6726a..f37e1ba8 100755 --- a/Filament/Blocks/Title.php +++ b/Filament/Blocks/Title.php @@ -39,6 +39,6 @@ public static function make( ->options($views), ] ) - ->columns($context === 'form' ? 2 : 1); + ->columns('form' === $context ? 2 : 1); } } diff --git a/Filament/Blocks/VideoSpatie.php b/Filament/Blocks/VideoSpatie.php index 7e188c07..6860dbac 100755 --- a/Filament/Blocks/VideoSpatie.php +++ b/Filament/Blocks/VideoSpatie.php @@ -79,7 +79,7 @@ function (HasForms $livewire, SpatieMediaLibraryFileUpload $component, Temporary // Forms\Components\SpatieMediaLibraryFileUpload::make('media_id') ]) - ->columns($context === 'form' ? 2 : 1); + ->columns('form' === $context ? 2 : 1); } public static function getRatios(): array diff --git a/Filament/Forms/Components/AddressField.php b/Filament/Forms/Components/AddressField.php index f9fa13bd..507b8211 100755 --- a/Filament/Forms/Components/AddressField.php +++ b/Filament/Forms/Components/AddressField.php @@ -29,7 +29,7 @@ public function saveRelationships(): void $record = $this->getRecord(); $relationship = $record?->{$this->getRelationship()}(); - if ($relationship === null) { + if (null === $relationship) { return; } elseif ($address = $relationship->first()) { $address->update($state); @@ -80,7 +80,7 @@ protected function setUp(): void 'zip' => null, ]; $address = $record?->getRelationValue($this->getRelationship()); - if ($address != null && is_object($address) && method_exists($address, 'toArray')) { + if (null != $address && is_object($address) && method_exists($address, 'toArray')) { $data = $address->toArray(); } diff --git a/Filament/Forms/Components/IconPicker.php b/Filament/Forms/Components/IconPicker.php index 5ac328d7..feafceee 100755 --- a/Filament/Forms/Components/IconPicker.php +++ b/Filament/Forms/Components/IconPicker.php @@ -50,7 +50,7 @@ protected function setUp(): void RadioIcon::make('newstate') ->options(function (Get $get) use ($icons): array { $pack = $get('pack'); - if ($pack == null) { + if (null == $pack) { return []; } $key = $pack.'.icons'; diff --git a/Providers/EventServiceProvider.php b/Providers/EventServiceProvider.php index 28756b63..04ddc91e 100755 --- a/Providers/EventServiceProvider.php +++ b/Providers/EventServiceProvider.php @@ -25,5 +25,7 @@ class EventServiceProvider extends BaseEventServiceProvider /** * Configure the proper event listeners for email verification. */ - protected function configureEmailVerification(): void {} + protected function configureEmailVerification(): void + { + } } diff --git a/View/Components/BreadLink.php b/View/Components/BreadLink.php index 53a64ed6..c1177a44 100755 --- a/View/Components/BreadLink.php +++ b/View/Components/BreadLink.php @@ -19,7 +19,8 @@ public function __construct( // public Post $article, // public bool $showAuthor = false, public string $tpl = 'v1' - ) {} + ) { + } public function render(): Renderable { diff --git a/View/Components/Logo.php b/View/Components/Logo.php index 0cc7e44e..359b5502 100755 --- a/View/Components/Logo.php +++ b/View/Components/Logo.php @@ -19,7 +19,8 @@ public function __construct( // public Post $article, // public bool $showAuthor = false, public string $tpl = 'v1' - ) {} + ) { + } public function render(): Renderable { diff --git a/View/Components/Navbar.php b/View/Components/Navbar.php index 341c847c..782130f0 100755 --- a/View/Components/Navbar.php +++ b/View/Components/Navbar.php @@ -19,7 +19,8 @@ public function __construct( // public Post $article, // public bool $showAuthor = false, // public string $tpl = 'v1' - ) {} + ) { + } public function render(): Renderable { diff --git a/View/Components/Page/WithSidebar.php b/View/Components/Page/WithSidebar.php index 04438c7c..76cdd681 100755 --- a/View/Components/Page/WithSidebar.php +++ b/View/Components/Page/WithSidebar.php @@ -14,7 +14,8 @@ public function __construct( // public Post $article, // public bool $showAuthor = false, public string $tpl = 'v1' - ) {} + ) { + } public function render(): Renderable { diff --git a/View/Components/Render/Block.php b/View/Components/Render/Block.php index be2d3f01..e97d8fed 100755 --- a/View/Components/Render/Block.php +++ b/View/Components/Render/Block.php @@ -35,7 +35,7 @@ public function render(): ViewFactory|View return view('ui::empty'); } - if ($this->tpl === 'v1') { + if ('v1' === $this->tpl) { $this->tpl = $this->block['type']; } else { $this->tpl = $this->block['type'].'.'.$this->tpl; diff --git a/View/Components/Sidebar.php b/View/Components/Sidebar.php index 0c1352b3..a5b4de4e 100755 --- a/View/Components/Sidebar.php +++ b/View/Components/Sidebar.php @@ -14,7 +14,8 @@ class Sidebar extends Component public function __construct( public Collection $collection, // public string $tpl = 'v1' - ) {} + ) { + } /** * Get the view / contents that represent the component. diff --git a/View/Components/Std.php b/View/Components/Std.php index cbda8bae..51f0b78c 100755 --- a/View/Components/Std.php +++ b/View/Components/Std.php @@ -19,7 +19,8 @@ public function __construct( // public Post $article, // public bool $showAuthor = false, public string $tpl = 'v1' - ) {} + ) { + } public function render(): Renderable { diff --git a/View/Components/Svg.php b/View/Components/Svg.php index ace29648..e16ae52d 100755 --- a/View/Components/Svg.php +++ b/View/Components/Svg.php @@ -19,7 +19,8 @@ public function __construct( // public Post $article, // public bool $showAuthor = false, public string $tpl = 'v1' - ) {} + ) { + } public function render(): Renderable { diff --git a/View/Composers/ThemeComposer.php b/View/Composers/ThemeComposer.php index bdf97619..67779871 100755 --- a/View/Composers/ThemeComposer.php +++ b/View/Composers/ThemeComposer.php @@ -17,7 +17,8 @@ public function metatags(): \Illuminate\View\View } /** - * @param string $index + * @param string $index + * * @return \Illuminate\Config\Repository|\Illuminate\Contracts\Foundation\Application|mixed */ public function metatag($index)