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/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/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/Providers/EventServiceProvider.php b/Providers/EventServiceProvider.php index 28756b63..04ddc91e 100644 --- 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 22a4de8a..c3e2114c 100755 --- a/View/Components/Render/Block.php +++ b/View/Components/Render/Block.php @@ -33,14 +33,14 @@ 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; } $views = ['ui::components.blocks.'.$this->tpl]; - if ($this->model !== null) { + if (null !== $this->model) { $module = app(GetModuleNameByModelAction::class)->execute($this->model); $views[] = strtolower($module).'::components.blocks.'.$this->tpl; } @@ -53,7 +53,7 @@ public function render(): ViewFactory|View * @phpstan-var view-string|null */ $view = Arr::first($views, $callback); - if ($view === null) { + if (null === $view) { throw new \Exception('none of these views exists ['.implode(', '.\chr(13), $views).']'); } $view_params = $this->block['data'] ?? []; 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)