Completed
Push — master ( 129670...806d76 )
by CodexShaper
05:18
created
src/Traits/RecordTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
         $files  = $request->file($column);
44 44
         $values = [];
45 45
         foreach ($files as $file) {
46
-            $fileName = Str::random(config('dbm.filesystem.random_length')) . '.' . $file->getClientOriginalExtension();
47
-            $path     = trim(config('dbm.filesystem.dir'), '/') . DIRECTORY_SEPARATOR . $tableName;
46
+            $fileName = Str::random(config('dbm.filesystem.random_length')).'.'.$file->getClientOriginalExtension();
47
+            $path     = trim(config('dbm.filesystem.dir'), '/').DIRECTORY_SEPARATOR.$tableName;
48 48
             $file->storeAs($path, $fileName);
49 49
             $values[] = $fileName;
50 50
         }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             $fieldType = $this->getFieldType($tableName, $column);
79 79
 
80 80
             if (!in_array($fieldType, Type::getTypes())) {
81
-                $this->generateError([$fieldType . " type not supported."]);
81
+                $this->generateError([$fieldType." type not supported."]);
82 82
             }
83 83
 
84 84
             if ($fieldType != 'timestamp') {
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
             $rules          = $updateSettings->rules;
253 253
             if (isset($updateSettings->localKey)) {
254 254
                 $localKey = $updateSettings->localKey;
255
-                $rules    = $updateSettings->rules . ',' . $columns->{$localKey};
255
+                $rules    = $updateSettings->rules.','.$columns->{$localKey};
256 256
             }
257 257
         }
258 258
 
Please login to merge, or discard this patch.