From 90b0ec624f0d2accb5005aa5311d84510a1d3d87 Mon Sep 17 00:00:00 2001 From: marco76tv Date: Fri, 8 Dec 2023 11:55:45 +0000 Subject: [PATCH] Dusting --- .../TreeResource/Pages/Concerns/HandlesTreeBuilder.php | 4 ++-- docs/config.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Filament/Resources/TreeResource/Pages/Concerns/HandlesTreeBuilder.php b/Filament/Resources/TreeResource/Pages/Concerns/HandlesTreeBuilder.php index fe690d4f..529926c6 100644 --- a/Filament/Resources/TreeResource/Pages/Concerns/HandlesTreeBuilder.php +++ b/Filament/Resources/TreeResource/Pages/Concerns/HandlesTreeBuilder.php @@ -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 (null == $last_son) { + if ($last_son == null) { $data['id'] = $data['parent_id'].'-1'; } else { $new_id = intval(Str::afterLast($last_son['id'], '-')) + 1; @@ -202,7 +202,7 @@ protected function getHeaderActions(): array } }) ->requiresConfirmation() - ->visible(null != $this->mountedItem), + ->visible($this->mountedItem != null), Action::make('item') ->mountUsing(function (ComponentContainer $form): void { if (! $this->mountedItem) { diff --git a/docs/config.php b/docs/config.php index 2c419c38..312cf93f 100644 --- a/docs/config.php +++ b/docs/config.php @@ -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) {