Completed
Pull Request — master (#5)
by Travis
04:10 queued 01:51
created
Category
src/NukaCode/Menu/Container.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -143,15 +143,15 @@
 block discarded – undo
143 143
      */
144 144
     private function updateActive()
145 145
     {
146
-        $this->each(function ($item) {
146
+        $this->each(function($item) {
147 147
             if (isset($item->links)) {
148
-                $item->links->each(function ($link) {
148
+                $item->links->each(function($link) {
149 149
                     if ($link->slug == $this->active) {
150 150
                         $link->setActive(true);
151 151
                     }
152 152
 
153 153
                     if (isset($link->links)) {
154
-                        $link->links->each(function ($subLink) use ($link) {
154
+                        $link->links->each(function($subLink) use ($link) {
155 155
                             if ($subLink->slug == $this->active) {
156 156
                                 if ($link->activeParentage()) {
157 157
                                     $link->setActive(true);
Please login to merge, or discard this patch.
src/NukaCode/Menu/MenuServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     protected function shareWithApp()
41 41
     {
42
-        $this->app->singleton('menu', function () {
42
+        $this->app->singleton('menu', function() {
43 43
             return new Container();
44 44
         });
45 45
     }
Please login to merge, or discard this patch.