[Translation][Csv file] remove unnecessary statements, for better readability.
This commit is contained in:
parent
73d9dab69f
commit
47b8c3ef3e
@ -51,18 +51,8 @@ class CsvFileLoader extends ArrayLoader
|
|||||||
$file->setCsvControl($this->delimiter, $this->enclosure, $this->escape);
|
$file->setCsvControl($this->delimiter, $this->enclosure, $this->escape);
|
||||||
|
|
||||||
foreach ($file as $data) {
|
foreach ($file as $data) {
|
||||||
if (substr($data[0], 0, 1) === '#') {
|
if ('#' !== substr($data[0], 0, 1) && isset($data[1]) && 2 === count($data)) {
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isset($data[1])) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (count($data) == 2) {
|
|
||||||
$messages[$data[0]] = $data[1];
|
$messages[$data[0]] = $data[1];
|
||||||
} else {
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user