@@ 176-180 (lines=5) @@ | ||
173 | ||
174 | $columnHeaders = $data->getColumnHeaders(); |
|
175 | ||
176 | if (count(array_diff($requireHeader, $columnHeaders)) > 0) { |
|
177 | $this->addErrors(trans('admin.common.csv_invalid_format')); |
|
178 | ||
179 | return $this->renderWithError($form, $headers, false); |
|
180 | } |
|
181 | ||
182 | $size = count($data); |
|
183 | ||
@@ 674-678 (lines=5) @@ | ||
671 | $headerByKey = array_flip(array_map($getId, $headers)); |
|
672 | ||
673 | $columnHeaders = $data->getColumnHeaders(); |
|
674 | if (count(array_diff($requireHeader, $columnHeaders)) > 0) { |
|
675 | $this->addErrors(trans('admin.common.csv_invalid_format')); |
|
676 | ||
677 | return $this->renderWithError($form, $headers, false); |
|
678 | } |
|
679 | ||
680 | $size = count($data); |
|
681 | if ($size < 1) { |