Passed
Push — master ( 67a175...8a4bfa )
by Caen
03:15 queued 12s
created
packages/framework/src/Framework/Features/Navigation/BaseNavigationMenu.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         });
Please login to merge, or discard this patch.