Passed
Push — master ( 1806a5...38a9ed )
by Al Amin
06:07
created
src/Http/Controllers/MenuController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $sections = Menu::sections()->pluck('name', 'id');
48 48
 
49
-        if(! $sections->count())
49
+        if (!$sections->count())
50 50
         {
51 51
             return redirect()
52 52
                 ->route('menu-maker::sections.index')
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         $name = $menu->name;
136 136
 
137 137
         $childs = $menu->descendants()->count();
138
-        if($childs > 0)
138
+        if ($childs > 0)
139 139
         {
140 140
             return redirect()
141 141
                 ->back()
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             ->where('privilege', 'PROTECTED')
160 160
             ->toTree($node);
161 161
         $selected = [];
162
-        if(request()->has('g') && request('g') > 0)
162
+        if (request()->has('g') && request('g') > 0)
163 163
         {
164 164
             $selected = Role::findOrFail(request('g'))->menus()->descendantsOf($node)->pluck('id')->toArray();
165 165
         }
Please login to merge, or discard this patch.