@@ -32,11 +32,11 @@ discard block |
||
| 32 | 32 | /** @return $this */ |
| 33 | 33 | public function generate(): static |
| 34 | 34 | { |
| 35 | - Router::each(function (Route $route): void { |
|
| 35 | + Router::each(function(Route $route): void { |
|
| 36 | 36 | $this->items->push(NavItem::fromRoute($route)); |
| 37 | 37 | }); |
| 38 | 38 | |
| 39 | - collect(config('hyde.navigation.custom', []))->each(function (NavItem $item): void { |
|
| 39 | + collect(config('hyde.navigation.custom', []))->each(function(NavItem $item): void { |
|
| 40 | 40 | $this->items->push($item); |
| 41 | 41 | }); |
| 42 | 42 | |
@@ -62,14 +62,14 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | protected function filterHiddenItems(): Collection |
| 64 | 64 | { |
| 65 | - return $this->items->reject(function (NavItem $item): bool { |
|
| 65 | + return $this->items->reject(function(NavItem $item): bool { |
|
| 66 | 66 | return $item->hidden || $this->filterDocumentationPage($item); |
| 67 | 67 | })->values(); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | protected function filterDuplicateItems(): Collection |
| 71 | 71 | { |
| 72 | - return $this->items->unique(function (NavItem $item): string { |
|
| 72 | + return $this->items->unique(function(NavItem $item): string { |
|
| 73 | 73 | return $item->resolveLink(); |
| 74 | 74 | }); |
| 75 | 75 | } |