@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public function validateForImport($file) |
| 68 | 68 | { |
| 69 | - return Validator::make(['extension' => $file->getClientOriginalExtension(),], ['extension' => 'in:xls,xlsx,csv']); |
|
| 69 | + return Validator::make(['extension' => $file->getClientOriginalExtension(), ], ['extension' => 'in:xls,xlsx,csv']); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | $file = base64_decode(request('file')); |
| 83 | 83 | $file = 'storage'.DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.$file; |
| 84 | - $rows = Excel::load($file, function ($reader) { |
|
| 84 | + $rows = Excel::load($file, function($reader) { |
|
| 85 | 85 | })->get(); |
| 86 | 86 | |
| 87 | 87 | //$data_import_column = []; |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | foreach ($selectColumn as $sk => $s) { |
| 127 | 127 | $colname = $table_columns[$sk]; |
| 128 | 128 | |
| 129 | - if (! DbInspector::isForeignKey($colname) || intval($value->$s)) { |
|
| 129 | + if (!DbInspector::isForeignKey($colname) || intval($value->$s)) { |
|
| 130 | 130 | $a[$colname] = $value->$s; |
| 131 | 131 | continue; |
| 132 | 132 | } |
@@ -174,10 +174,10 @@ discard block |
||
| 174 | 174 | { |
| 175 | 175 | $module = DB::table('cms_moduls')->where('table_name', $table)->first(); |
| 176 | 176 | if (is_null($module)) { |
| 177 | - return ; |
|
| 177 | + return; |
|
| 178 | 178 | } |
| 179 | 179 | $relation_class = __NAMESPACE__.'\\'.$module->controller; |
| 180 | - if (! class_exists($relation_class)) { |
|
| 180 | + if (!class_exists($relation_class)) { |
|
| 181 | 181 | $relation_class = ctrlNamespace().'\\'.$module->controller; |
| 182 | 182 | } |
| 183 | 183 | |