Skip to content

Commit

Permalink
Fix: allow closure in navigation registration
Browse files Browse the repository at this point in the history
  • Loading branch information
awcodes committed Dec 16, 2023
1 parent c990fd3 commit a02c440
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Curator.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Curator

protected bool|Closure $shouldPreserveFilenames = false;

protected bool $shouldRegisterNavigation = true;
protected bool|Closure|null $shouldRegisterNavigation = true;

protected bool|Closure|null $tableHasGridLayout = true;

Expand Down Expand Up @@ -179,7 +179,7 @@ public function getGlideMaxImageSize(): int

public function getGlideServer(): Server|ServerFactory
{
if (! $this->glideServer) {
if (!$this->glideServer) {
return ServerFactory::create([
'driver' => $this->getGlideDriver(),
'response' => new LaravelResponseFactory(app('request')),
Expand Down Expand Up @@ -495,7 +495,7 @@ public function shouldRegisterResources(): bool

public function shouldTableHaveGridLayout(): string
{
if (! Session::has('tableLayout')) {
if (!Session::has('tableLayout')) {
Session::put('tableLayout', $this->evaluate($this->tableHasGridLayout));
}

Expand Down

0 comments on commit a02c440

Please sign in to comment.