Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv authored and github-actions[bot] committed Dec 12, 2023
1 parent bf42a46 commit a3eb10a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function storeChildItem(Model $record, array $data): void
$last_son = $record::class::where('parent_id', $data['parent_id'])
->orderByDesc('id')
->first();
if ($last_son == null) {
if (null == $last_son) {
$data['id'] = $data['parent_id'].'-1';
} else {
$new_id = intval(Str::afterLast($last_son['id'], '-')) + 1;
Expand Down Expand Up @@ -202,7 +202,7 @@ protected function getHeaderActions(): array
}
})
->requiresConfirmation()
->visible($this->mountedItem != null),
->visible(null != $this->mountedItem),
Action::make('item')
->mountUsing(function (ComponentContainer $form): void {
if (! $this->mountedItem) {
Expand Down
2 changes: 1 addition & 1 deletion docs/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'docsearchIndexName' => env('DOCSEARCH_INDEX'),

// navigation menu
'navigation' => require_once('navigation.php'),
'navigation' => require_once ('navigation.php'),

// helpers
'isActive' => function ($page, $path) {
Expand Down

0 comments on commit a3eb10a

Please sign in to comment.