@@ -36,13 +36,13 @@ discard block |
||
36 | 36 | |
37 | 37 | protected function generate(): void |
38 | 38 | { |
39 | - Routes::each(function (Route $route): void { |
|
39 | + Routes::each(function(Route $route): void { |
|
40 | 40 | if ($this->canAddRoute($route)) { |
41 | 41 | $this->items->put($route->getRouteKey(), NavItem::fromRoute($route)); |
42 | 42 | } |
43 | 43 | }); |
44 | 44 | |
45 | - collect(Config::getArray('hyde.navigation.custom', []))->each(function (NavItem $item): void { |
|
45 | + collect(Config::getArray('hyde.navigation.custom', []))->each(function(NavItem $item): void { |
|
46 | 46 | // Since these were added explicitly by the user, we can assume they should always be shown |
47 | 47 | $this->items->push($item); |
48 | 48 | }); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | protected function removeDuplicateItems(): void |
57 | 57 | { |
58 | - $this->items = $this->items->unique(function (NavItem $item): string { |
|
58 | + $this->items = $this->items->unique(function(NavItem $item): string { |
|
59 | 59 | // Filter using a combination of the group and label to allow duplicate labels in different groups |
60 | 60 | return $item->getGroup().$item->label; |
61 | 61 | }); |