Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphjsmit authored and github-actions[bot] committed Aug 19, 2022
1 parent f45a080 commit d7fa5ac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Livewire/Concerns/HasForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ trait HasForm

public function bootedHasForm(): void
{
if ( $this->shouldFillForm && $this->formClass ) {
if ($this->shouldFillForm && $this->formClass) {
$this->mountForm();
}

if ( $this->formClass ) {
if ($this->formClass) {
$this->registerFormMessages();
}
}
Expand All @@ -40,7 +40,7 @@ public function executeButtonAction(string $buttonActionName): void
collect($this->call('getButtonActions'))
->reject(fn (ButtonAction $buttonAction) => $buttonAction->isHidden())
->each(function (ButtonAction $buttonAction) use ($buttonActionName): void {
if ( $buttonAction->getName() !== $buttonActionName ) {
if ($buttonAction->getName() !== $buttonActionName) {
return;
}

Expand Down Expand Up @@ -76,7 +76,7 @@ protected function getForms(): array
$this->makeForm()
->schema($this->call('getFormSchema') ?: [])
->tap(function (ComponentContainer $componentContainer): ComponentContainer {
if ( $this->model ) {
if ($this->model) {
$componentContainer->model($this->model);
}

Expand All @@ -92,7 +92,7 @@ protected function handleFormSubmitted(): void
{
$this->handleCloseOnSubmit();

if ( ! $this->model ) {
if (! $this->model) {
$this->reset('data', 'shouldFillForm');

$this->mountForm();
Expand Down

0 comments on commit d7fa5ac

Please sign in to comment.