ネストをちょっと減らした
This commit is contained in:
@@ -150,9 +150,9 @@ class CheckinCsvImporter
|
||||
$column = 'タグ' . $i;
|
||||
if (empty($record[$column])) {
|
||||
break;
|
||||
} else {
|
||||
$tag = trim($record[$column]);
|
||||
}
|
||||
|
||||
$tag = trim($record[$column]);
|
||||
if (empty($tag)) {
|
||||
break;
|
||||
}
|
||||
@@ -165,7 +165,6 @@ class CheckinCsvImporter
|
||||
|
||||
$tags[] = Tag::firstOrCreate(['name' => $tag]);
|
||||
}
|
||||
}
|
||||
|
||||
return $tags;
|
||||
}
|
||||
|
Reference in New Issue
Block a user