@@ -46,7 +46,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |