Completed
Push — master ( 8b711d...eadec5 )
by CodexShaper
23:38 queued 16:42
created
src/Database/Schema/Table.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public static function create($table)
89 89
     {
90
-        if (! is_array($table)) {
90
+        if (!is_array($table)) {
91 91
             $table = json_decode($table, true);
92 92
         }
93 93
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public static function update($table)
113 113
     {
114
-        if (! is_array($table)) {
114
+        if (!is_array($table)) {
115 115
             $table = json_decode($table, true);
116 116
         }
117 117
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      */
148 148
     public static function prepareTable($table)
149 149
     {
150
-        if (! is_array($table)) {
150
+        if (!is_array($table)) {
151 151
             $table = json_decode($table, true);
152 152
         }
153 153
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
             return MongoDB::hasCollection($tableName);
262 262
         }
263 263
 
264
-        if (! SchemaManager::getInstance()->tablesExist($tableName)) {
264
+        if (!SchemaManager::getInstance()->tablesExist($tableName)) {
265 265
             throw SchemaException::tableDoesNotExist($tableName);
266 266
         }
267 267
 
@@ -284,8 +284,8 @@  discard block
 block discarded – undo
284 284
         $options['path'] = Paginator::resolveCurrentPath();
285 285
         $items = static::all();
286 286
         $collection = $items instanceof Collection ? $items : Collection::make($items);
287
-        if (! empty($query)) {
288
-            $collection = $collection->filter(function ($value, $key) use ($query) {
287
+        if (!empty($query)) {
288
+            $collection = $collection->filter(function($value, $key) use ($query) {
289 289
                 return false !== stristr($value, $query);
290 290
             });
291 291
         }
Please login to merge, or discard this patch.
database/seeds/DatabaseMenuSeeder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Http/Controllers/CrudController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'];
Please login to merge, or discard this patch.