Skip to content

Commit

Permalink
Merge pull request #382 from awcodes/fix/navigation-closure
Browse files Browse the repository at this point in the history
Fix: allow closure in navigation registration
  • Loading branch information
awcodes authored Dec 16, 2023
2 parents c990fd3 + a02c440 commit 2494f39
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 2494f39

Please sign in to comment.