diff --git a/src/Forms/Components/Actions/AddAction.php b/src/Forms/Components/Actions/AddAction.php index 1fe61e3..b23a8b7 100644 --- a/src/Forms/Components/Actions/AddAction.php +++ b/src/Forms/Components/Actions/AddAction.php @@ -40,13 +40,13 @@ protected function setUp(): void $this->form( function (Component $component, Form $form): ?Form { - if(! $component->hasModal()) { + if (! $component->hasModal()) { return null; } $form = $component->getForm($form); - if( $model = $component->getRelatedModel()) { + if ($model = $component->getRelatedModel()) { $form->model($model); } diff --git a/src/Forms/Components/Actions/AddChildAction.php b/src/Forms/Components/Actions/AddChildAction.php index 4d1d8fd..feaf61f 100644 --- a/src/Forms/Components/Actions/AddChildAction.php +++ b/src/Forms/Components/Actions/AddChildAction.php @@ -40,13 +40,13 @@ protected function setUp(): void $this->form( function (Component $component, Form $form): ?Form { - if(! $component->hasModal()) { + if (! $component->hasModal()) { return null; } $form = $component->getForm($form); - if( $model = $component->getRelatedModel()) { + if ($model = $component->getRelatedModel()) { $form->model($model); } diff --git a/src/Forms/Components/Actions/EditAction.php b/src/Forms/Components/Actions/EditAction.php index 25a7472..a0b0675 100644 --- a/src/Forms/Components/Actions/EditAction.php +++ b/src/Forms/Components/Actions/EditAction.php @@ -33,7 +33,7 @@ function (Component $component, Form $form, array $arguments): Form { ->getForm($form) ->statePath($arguments['statePath']); - if( $component->getRelatedModel()) { + if ($component->getRelatedModel()) { $form->model($component->getCachedExistingRecords()->get($arguments['cachedRecordKey'])); }