@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | foreach ($models as $table => $model) { |
35 | 35 | if (is_array($model)) { |
36 | 36 | $total = count($model); |
37 | - for($i = 0; $i < $total; $i++) { |
|
37 | + for ($i = 0; $i < $total; $i++) { |
|
38 | 38 | if (isset($this->config[$table][$i])) { |
39 | 39 | $this->setModel($model[$i], $this->config[$table][$i], $csv, $table); |
40 | 40 | } else { |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | if (isset($rec['func']) === true && $rec['func']) { |
53 | 53 | $func = $rec['func']; |
54 | 54 | $col = isset($rec['csv']) ? $rec['csv'] : null; |
55 | - if (strpos($col,",") !== false) { |
|
55 | + if (strpos($col, ",") !== false) { |
|
56 | 56 | $col = explode(",", $col); |
57 | 57 | } |
58 | - if (method_exists($this,$func) === true) { |
|
58 | + if (method_exists($this, $func) === true) { |
|
59 | 59 | $this->$func($model, $key, $csv, $col); |
60 | 60 | } else { |
61 | 61 | throw new \Exception(get_class($this) . 'に関数=' . $func . 'が実装されていません。'); |