@@ -61,8 +61,8 @@ discard block |
||
| 61 | 61 | $files = $request->file($column); |
| 62 | 62 | $values = []; |
| 63 | 63 | foreach ($files as $file) { |
| 64 | - $fileName = Str::random(config('dbm.filesystem.random_length')) . '.' . $file->getClientOriginalExtension(); |
|
| 65 | - $path = 'public/dbm/' . $tableName; |
|
| 64 | + $fileName = Str::random(config('dbm.filesystem.random_length')).'.'.$file->getClientOriginalExtension(); |
|
| 65 | + $path = 'public/dbm/'.$tableName; |
|
| 66 | 66 | $file->storeAs($path, $fileName); |
| 67 | 67 | $values[] = $fileName; |
| 68 | 68 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | $fieldType = $this->getFieldType($tableName, $column); |
| 95 | 95 | |
| 96 | 96 | if (!in_array($fieldType, Type::getTypes())) { |
| 97 | - $this->generateError([$fieldType . " type not supported."]); |
|
| 97 | + $this->generateError([$fieldType." type not supported."]); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | $table->{$column} = Type::$fieldType($value); |
@@ -235,8 +235,8 @@ discard block |
||
| 235 | 235 | $files = $request->file($column); |
| 236 | 236 | $values = []; |
| 237 | 237 | foreach ($files as $file) { |
| 238 | - $fileName = Str::random(config('dbm.filesystem.random_length')) . '.' . $file->getClientOriginalExtension(); |
|
| 239 | - $path = 'public/dbm/' . $tableName; |
|
| 238 | + $fileName = Str::random(config('dbm.filesystem.random_length')).'.'.$file->getClientOriginalExtension(); |
|
| 239 | + $path = 'public/dbm/'.$tableName; |
|
| 240 | 240 | $file->storeAs($path, $fileName); |
| 241 | 241 | $values[] = $fileName; |
| 242 | 242 | } |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | $fieldType = $this->getFieldType($tableName, $column); |
| 270 | 270 | |
| 271 | 271 | if (!in_array($fieldType, Type::getTypes())) { |
| 272 | - $this->generateError([$fieldType . " type not supported."]); |
|
| 272 | + $this->generateError([$fieldType." type not supported."]); |
|
| 273 | 273 | } |
| 274 | 274 | |
| 275 | 275 | $table->{$column} = Type::$fieldType($value); |
@@ -538,7 +538,7 @@ discard block |
||
| 538 | 538 | |
| 539 | 539 | if (!empty($query) && !empty($searchColumn)) { |
| 540 | 540 | $records = DBM::model($model, $tableName) |
| 541 | - ->where($searchColumn, 'LIKE', '%' . $query . '%') |
|
| 541 | + ->where($searchColumn, 'LIKE', '%'.$query.'%') |
|
| 542 | 542 | ->paginate($perPage); |
| 543 | 543 | } |
| 544 | 544 | |
@@ -694,7 +694,7 @@ discard block |
||
| 694 | 694 | } else if ($action == 'update' && isset($settings->update)) { |
| 695 | 695 | $updateSettings = $settings->update; |
| 696 | 696 | $localKey = $updateSettings->localKey; |
| 697 | - $rules = $updateSettings->rules . ',' . $columns->{$localKey}; |
|
| 697 | + $rules = $updateSettings->rules.','.$columns->{$localKey}; |
|
| 698 | 698 | } |
| 699 | 699 | |
| 700 | 700 | return $rules; |