Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangjchandler authored and github-actions[bot] committed Oct 27, 2022
1 parent d3ae276 commit aa0f756
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function indentItem(string $statePath)

$previous = $parent[$keys[$position - 1]];

if (!isset($previous['children'])) {
if (! isset($previous['children'])) {
$previous['children'] = [];
}

Expand Down Expand Up @@ -88,7 +88,7 @@ public function moveItemUp(string $statePath)
$hasMoved = false;

uksort($parent, function ($_, $b) use ($uuid, &$hasMoved) {
if ($b === $uuid && !$hasMoved) {
if ($b === $uuid && ! $hasMoved) {
$hasMoved = true;

return 1;
Expand All @@ -109,7 +109,7 @@ public function moveItemDown(string $statePath)
$hasMoved = false;

uksort($parent, function ($a, $_) use ($uuid, &$hasMoved) {
if ($a === $uuid && !$hasMoved) {
if ($a === $uuid && ! $hasMoved) {
$hasMoved = true;

return 1;
Expand Down Expand Up @@ -143,7 +143,7 @@ protected function getActions(): array
return [
Action::make('item')
->mountUsing(function (ComponentContainer $form) {
if (!$this->mountedItem) {
if (! $this->mountedItem) {
return;
}

Expand All @@ -162,7 +162,7 @@ protected function getActions(): array
return array_combine(array_keys($types), Arr::pluck($types, 'name'));
})
->afterStateUpdated(function ($state, Select $component): void {
if (!$state) {
if (! $state) {
return;
}

Expand Down

0 comments on commit aa0f756

Please sign in to comment.