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 Aug 18, 2023
1 parent 2dd646e commit d794f97
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Foms/Components/Actions/AddAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use Filament\Forms\Components\Actions\Action;
use Filament\Forms\Form;
use Filament\Support\Enums\ActionSize;
use Saade\FilamentAdjacencyList\Foms\Components\AdjacencyList;
use Illuminate\Support\Str;
use Saade\FilamentAdjacencyList\Foms\Components\AdjacencyList;

class AddAction extends Action
{
Expand Down
2 changes: 1 addition & 1 deletion src/Foms/Components/Actions/AddChildAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use Filament\Forms\Components\Actions\Action;
use Filament\Forms\Form;
use Filament\Support\Enums\ActionSize;
use Saade\FilamentAdjacencyList\Foms\Components\AdjacencyList;
use Illuminate\Support\Str;
use Saade\FilamentAdjacencyList\Foms\Components\AdjacencyList;

class AddChildAction extends Action
{
Expand Down
2 changes: 0 additions & 2 deletions src/Foms/Components/Actions/ReorderAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
namespace Saade\FilamentAdjacencyList\Foms\Components\Actions;

use Filament\Forms\Components\Actions\Action;
use Filament\Forms\Form;
use Filament\Support\Enums\ActionSize;
use Saade\FilamentAdjacencyList\Foms\Components\AdjacencyList;
use Illuminate\Support\Str;

class ReorderAction extends Action
{
Expand Down
5 changes: 2 additions & 3 deletions src/Foms/Components/AdjacencyList.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Filament\Forms;
use Filament\Forms\Components\Actions\Action;
use Illuminate\Support\Str;
use Saade\FilamentAdjacencyList\Foms\Components\Concerns;

class AdjacencyList extends Forms\Components\Field
{
Expand All @@ -24,7 +23,7 @@ protected function setUp(): void
parent::setUp();

$this->afterStateHydrated(function (AdjacencyList $component, ?array $state) {
if (!$state) {
if (! $state) {
$component->state([]);
}
});
Expand Down Expand Up @@ -55,7 +54,7 @@ function (AdjacencyList $component, string $targetStatePath, array $targetItemsS
$items[$uuid] = $item;
}

if (!$targetStatePath) {
if (! $targetStatePath) {
$state = $items;
} else {
data_set($state, $targetStatePath, $items);
Expand Down
6 changes: 3 additions & 3 deletions src/Foms/Components/Concerns/HasForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Saade\FilamentAdjacencyList\Foms\Components\Concerns;

use Closure;
use Filament\Forms\Form;
use Filament\Forms;
use Filament\Forms\Form;

trait HasForm
{
Expand All @@ -21,7 +21,7 @@ public function form(array | Closure | null $form): static

public function getForm(Form $form): ?Form
{
if (!$this->hasModal()) {
if (! $this->hasModal()) {
return null;
}

Expand All @@ -34,7 +34,7 @@ public function getForm(Form $form): ?Form
]);
}

if (is_array($modifiedForm) && (!count($modifiedForm))) {
if (is_array($modifiedForm) && (! count($modifiedForm))) {
return null;
}

Expand Down

0 comments on commit d794f97

Please sign in to comment.