@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | { |
| 16 | 16 | $this->table = 'cms_moduls'; |
| 17 | 17 | $this->primaryKey = 'id'; |
| 18 | - $this->titleField = 'name' ; |
|
| 18 | + $this->titleField = 'name'; |
|
| 19 | 19 | $this->limit = 100; |
| 20 | 20 | $this->buttonAdd = false; |
| 21 | 21 | $this->buttonExport = false; |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | function hookBeforeDelete($ids) |
| 57 | 57 | { |
| 58 | - foreach ($ids as $id){ |
|
| 58 | + foreach ($ids as $id) { |
|
| 59 | 59 | $controller = ModulesRepo::getControllerName($id); |
| 60 | 60 | DB::table('cms_menus')->where('path', 'like', '%'.$controller.'%')->delete(); |
| 61 | 61 | @unlink(controller_path($controller)); |