Passed
Push — master ( 9577b0...37dd10 )
by Yuichi
02:26
created
src/Imports/AbstractImport.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 . 'が実装されていません。');
Please login to merge, or discard this patch.