Completed
Pull Request — master (#4)
by
unknown
06:50
created
Tests/MenuTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     /** @test */
21 21
     public function it_generates_an_empty_menu()
22 22
     {
23
-        $this->menu->create('test', function (MenuBuilder $menu) {
23
+        $this->menu->create('test', function(MenuBuilder $menu) {
24 24
         });
25 25
 
26 26
         $expected = <<<TEXT
Please login to merge, or discard this patch.
src/MenuItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@
 block discarded – undo
296 296
     public function getChilds()
297 297
     {
298 298
         if (config('menus.ordering')) {
299
-            return collect($this->childs)->sortBy(function ($child) {
299
+            return collect($this->childs)->sortBy(function($child) {
300 300
                 return $child->order;
301 301
             })->all();
302 302
         }
Please login to merge, or discard this patch.
src/MenuBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function findBy($key, $value)
121 121
     {
122
-        return collect($this->items)->filter(function ($item) use ($key, $value) {
122
+        return collect($this->items)->filter(function($item) use ($key, $value) {
123 123
             return $item->{$key} == $value;
124 124
         })->first();
125 125
     }
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      */
304 304
     protected function resolveItems(array &$items)
305 305
     {
306
-        $resolver = function ($property) {
306
+        $resolver = function($property) {
307 307
             return $this->resolve($property) ?: $property;
308 308
         };
309 309
 
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
     public function getOrderedItems()
608 608
     {
609 609
         if (config('menus.ordering') || $this->ordering) {
610
-            return $this->toCollection()->sortBy(function ($item) {
610
+            return $this->toCollection()->sortBy(function($item) {
611 611
                 return $item->order;
612 612
             })->all();
613 613
         }
Please login to merge, or discard this patch.
src/Menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
      */
94 94
     public function modify($name, Closure $callback)
95 95
     {
96
-        $menu = collect($this->menus)->filter(function ($menu) use ($name) {
96
+        $menu = collect($this->menus)->filter(function($menu) use ($name) {
97 97
             return $menu->getName() == $name;
98 98
         })->first();
99 99
 
Please login to merge, or discard this patch.
src/MenusServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         $this->registerHtmlPackage();
42 42
 
43
-        $this->app->singleton('menus', function ($app)
43
+        $this->app->singleton('menus', function($app)
44 44
         {
45 45
             return new Menu($app['view'], $app['config']);
46 46
         });
Please login to merge, or discard this patch.