Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
saade authored and github-actions[bot] committed Mar 20, 2024
1 parent e928ee4 commit 40fc1a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Forms/Components/Actions/AddAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Forms/Components/Actions/AddChildAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Components/Actions/EditAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']));
}

Expand Down

0 comments on commit 40fc1a1

Please sign in to comment.