Completed
Push — master ( 6b425b...94fb52 )
by CodexShaper
05:22
created
src/Http/Controllers/RecordController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
         $files  = $request->file($column);
85 85
         $values = [];
86 86
         foreach ($files as $file) {
87
-            $fileName = Str::random(config('dbm.filesystem.random_length')) . '.' . $file->getClientOriginalExtension();
88
-            $path     = 'public/dbm/' . $tableName;
87
+            $fileName = Str::random(config('dbm.filesystem.random_length')).'.'.$file->getClientOriginalExtension();
88
+            $path     = 'public/dbm/'.$tableName;
89 89
             $file->storeAs($path, $fileName);
90 90
             $values[] = $fileName;
91 91
         }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             $fieldType = $this->getFieldType($tableName, $column);
114 114
 
115 115
             if (!in_array($fieldType, Type::getTypes())) {
116
-                $this->generateError([$fieldType . " type not supported."]);
116
+                $this->generateError([$fieldType." type not supported."]);
117 117
             }
118 118
 
119 119
             $value = Type::$fieldType($value);
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 
344 344
             if (!empty($query) && !empty($searchColumn)) {
345 345
                 $records = DBM::model($model, $tableName)
346
-                    ->where($searchColumn, 'LIKE', '%' . $query . '%')
346
+                    ->where($searchColumn, 'LIKE', '%'.$query.'%')
347 347
                     ->paginate($perPage);
348 348
             }
349 349
 
Please login to merge, or discard this patch.