diff --git a/src/Concerns/HasOptions.php b/src/Concerns/HasOptions.php index b7c4c8e3..6cf7487e 100644 --- a/src/Concerns/HasOptions.php +++ b/src/Concerns/HasOptions.php @@ -33,8 +33,8 @@ public static function visibility(?array $getFields = []): Accordion return Accordion::make('visibility-options') ->label(__('Conditional Visibility')) ->icon('iconpark-eyes') - ->visible(fn(Livewire $livewire)=>str($livewire->getName()) - ->replace('-form','') + ->visible(fn (Livewire $livewire) => str($livewire->getName()) + ->replace('-form', '') ->explode('.') ->last() === 'edit') ->schema([ diff --git a/src/Concerns/Schemata.php b/src/Concerns/Schemata.php index e8add922..e38a76f9 100644 --- a/src/Concerns/Schemata.php +++ b/src/Concerns/Schemata.php @@ -406,8 +406,7 @@ public static function getSectionsSchema(): array ->modalIcon('heroicon-m-cog') ->modalDescription(__('advanced fields settings')) ->fillForm( - fn (array $arguments, Repeater $component) - => $component->getItemState($arguments['item']) + fn (array $arguments, Repeater $component) => $component->getItemState($arguments['item']) ) ->form(function (Get $get, array $arguments, Repeater $component) { $allSections = self::getVisibleFields($get('../../sections'), $arguments);