Skip to content

Commit

Permalink
run manual lint
Browse files Browse the repository at this point in the history
  • Loading branch information
awcodes committed Dec 1, 2023
1 parent 954eccf commit 31d4dfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/QuickCreatePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function getResources(): array
'action_name' => $actionName,
'action' => ! $resource->hasPage('create') ? 'mountAction(\'' . $actionName . '\')' : null,
'url' => $resource->hasPage('create') ? $resource::getUrl('create') : null,
'navigation' => $resource->getNavigationSort()
'navigation' => $resource->getNavigationSort(),
];
}

Expand Down Expand Up @@ -156,10 +156,10 @@ public function sort(bool | Closure $condition = true): static

public function sortBy(string | Closure $sortBy = 'label'): static
{
if(!in_array($sortBy, ['label','navigation'])){
if (! in_array($sortBy, ['label', 'navigation'])) {
$sortBy = 'label';
}

$this->sortBy = $sortBy;

return $this;
Expand Down

0 comments on commit 31d4dfc

Please sign in to comment.