Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphjsmit authored and actions-user committed Feb 16, 2022
1 parent 1ca8a99 commit 7702235
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Livewire/Concerns/CanCallForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ trait CanCallForm
{
protected function call(string $method, array $parameters = []): mixed
{
if ( ! $this->formClass || ! method_exists($this->formClass, $method) ) {
if (! $this->formClass || ! method_exists($this->formClass, $method)) {
return null;
}

Expand Down
10 changes: 5 additions & 5 deletions src/Livewire/Concerns/HasForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function mountHasForm(string $maxWidth = null): void

public function runFormInitialization(string $actionable, $params): void
{
if ( $this->actionableId !== $actionable ) {
if ($this->actionableId !== $actionable) {
return;
}

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

if ( ! $this->model ) {
if (! $this->model) {
$this->mountForm();
}
}
Expand All @@ -63,18 +63,18 @@ public function getFormSchema(): array

private function setDefaultProperties(): void
{
if ( $this->formMounted ) {
if ($this->formMounted) {
return;
}

if ( $this->formClass ) {
if ($this->formClass) {
$this->mountForm();
}
}

private function mountForm(): void
{
if ( ! $this->formMounted ) {
if (! $this->formMounted) {
$this->call('mount');
}

Expand Down

0 comments on commit 7702235

Please sign in to comment.