@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | { |
15 | 15 | $menu = DBM::Menu()->where('slug', 'admin')->first(); |
16 | 16 | |
17 | - if (! $menu) { |
|
17 | + if (!$menu) { |
|
18 | 18 | $order = DBM::Menu()->max('order'); |
19 | 19 | $menu = DBM::Menu(); |
20 | 20 | $menu->name = 'Admin'; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | foreach ($this->getItems() as $item) { |
28 | - if (! DBM::MenuItem()->where('slug', Str::slug($item['slug']))->first()) { |
|
28 | + if (!DBM::MenuItem()->where('slug', Str::slug($item['slug']))->first()) { |
|
29 | 29 | $itemOrder = DBM::MenuItem()->max('order'); |
30 | 30 | $menuItem = DBM::MenuItem(); |
31 | 31 | $menuItem->menu_id = $menu->id; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | return $response; |
40 | 40 | } |
41 | 41 | |
42 | - if (! class_exists($table['controller'])) { |
|
42 | + if (!class_exists($table['controller'])) { |
|
43 | 43 | DBM::makeController($table['controller']); |
44 | 44 | } |
45 | 45 | |
@@ -77,11 +77,11 @@ discard block |
||
77 | 77 | return $this->generateError(['Model Must be provided']); |
78 | 78 | } |
79 | 79 | |
80 | - if ($table['makeModel'] && ! class_exists($table['model'])) { |
|
80 | + if ($table['makeModel'] && !class_exists($table['model'])) { |
|
81 | 81 | DBM::makeModel($table['model'], $table['name']); |
82 | 82 | } |
83 | 83 | |
84 | - if (! $table['makeModel'] && ! class_exists($table['model'])) { |
|
84 | + if (!$table['makeModel'] && !class_exists($table['model'])) { |
|
85 | 85 | $error = "Create model {$table['model']} first or checked create model option"; |
86 | 86 | |
87 | 87 | return $this->generateError([$error]); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | { |
102 | 102 | $object = DBM::Object()->where('name', $table['name'])->first(); |
103 | 103 | $action = 'update'; |
104 | - if (! $object) { |
|
104 | + if (!$object) { |
|
105 | 105 | $object = DBM::Object(); |
106 | 106 | $object->name = $table['name']; |
107 | 107 | $action = 'save'; |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | { |
138 | 138 | $menu = DBM::Menu()::where('slug', 'admin')->first(); |
139 | 139 | |
140 | - if (! $menu) { |
|
140 | + if (!$menu) { |
|
141 | 141 | $order = DBM::Menu()::max('order'); |
142 | 142 | $menu = DBM::Menu(); |
143 | 143 | $menu->name = 'Admin'; |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | $menu->save(); |
148 | 148 | } |
149 | 149 | |
150 | - if (! DBM::MenuItem()::where('slug', Str::slug($object->name))->first()) { |
|
150 | + if (!DBM::MenuItem()::where('slug', Str::slug($object->name))->first()) { |
|
151 | 151 | $itemOrder = DBM::MenuItem()::max('order'); |
152 | 152 | |
153 | 153 | $menuItem = DBM::MenuItem(); |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | |
211 | 211 | $action = 'update'; |
212 | 212 | |
213 | - if (! $field) { |
|
213 | + if (!$field) { |
|
214 | 214 | $field = DBM::Field(); |
215 | 215 | $field->dbm_object_id = $object->id; |
216 | 216 | $field->name = $column['name']; |