Completed
Push — master ( 3739d9...3d27ba )
by CodexShaper
05:01
created
src/Http/Controllers/RecordController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
                             $files  = $request->file($column);
61 61
                             $values = [];
62 62
                             foreach ($files as $file) {
63
-                                $fileName = Str::random(config('dbm.filesystem.random_length')) . '.' . $file->getClientOriginalExtension();
64
-                                $path     = 'public/dbm/' . $tableName;
63
+                                $fileName = Str::random(config('dbm.filesystem.random_length')).'.'.$file->getClientOriginalExtension();
64
+                                $path     = 'public/dbm/'.$tableName;
65 65
                                 $file->storeAs($path, $fileName);
66 66
                                 $values[] = $fileName;
67 67
                             }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                             $fieldType = $this->getFieldType($tableName, $column);
94 94
 
95 95
                             if (!in_array($fieldType, Type::getTypes())) {
96
-                                $this->generateError([$fieldType . " type not supported."]);
96
+                                $this->generateError([$fieldType." type not supported."]);
97 97
                             }
98 98
 
99 99
                             $table->{$column} = Type::$fieldType($value);
@@ -234,8 +234,8 @@  discard block
 block discarded – undo
234 234
                             $files  = $request->file($column);
235 235
                             $values = [];
236 236
                             foreach ($files as $file) {
237
-                                $fileName = Str::random(config('dbm.filesystem.random_length')) . '.' . $file->getClientOriginalExtension();
238
-                                $path     = 'public/dbm/' . $tableName;
237
+                                $fileName = Str::random(config('dbm.filesystem.random_length')).'.'.$file->getClientOriginalExtension();
238
+                                $path     = 'public/dbm/'.$tableName;
239 239
                                 $file->storeAs($path, $fileName);
240 240
                                 $values[] = $fileName;
241 241
                             }
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
                                 $fieldType = $this->getFieldType($tableName, $column);
269 269
 
270 270
                                 if (!in_array($fieldType, Type::getTypes())) {
271
-                                    $this->generateError([$fieldType . " type not supported."]);
271
+                                    $this->generateError([$fieldType." type not supported."]);
272 272
                                 }
273 273
 
274 274
                                 $table->{$column} = Type::$fieldType($value);
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
 
474 474
             if (!empty($query) && !empty($searchColumn)) {
475 475
                 $records = DBM::model($model, $tableName)
476
-                    ->where($searchColumn, 'LIKE', '%' . $query . '%')
476
+                    ->where($searchColumn, 'LIKE', '%'.$query.'%')
477 477
                     ->paginate($perPage);
478 478
             }
479 479
 
Please login to merge, or discard this patch.
src/Traits/RecordHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         } else if ($action == 'update' && isset($settings->update)) {
119 119
             $updateSettings = $settings->update;
120 120
             $localKey       = $updateSettings->localKey;
121
-            $rules          = $updateSettings->rules . ',' . $columns->{$localKey};
121
+            $rules          = $updateSettings->rules.','.$columns->{$localKey};
122 122
         }
123 123
 
124 124
         return $rules;
Please login to merge, or discard this patch.