Code Duplication    Length = 5-5 lines in 2 locations

src/Eccube/Controller/Admin/Product/CsvImportController.php 2 locations

@@ 201-205 (lines=5) @@
198
199
                    $columnHeaders = $data->getColumnHeaders();
200
201
                    if (count(array_diff($requireHeader, $columnHeaders)) > 0) {
202
                        $this->addErrors(trans('admin.common.csv_invalid_format'));
203
204
                        return $this->renderWithError($form, $headers, false);
205
                    }
206
207
                    $size = count($data);
208
@@ 717-721 (lines=5) @@
714
                    $headerByKey = array_flip(array_map($getId, $headers));
715
716
                    $columnHeaders = $data->getColumnHeaders();
717
                    if (count(array_diff($requireHeader, $columnHeaders)) > 0) {
718
                        $this->addErrors(trans('admin.common.csv_invalid_format'));
719
720
                        return $this->renderWithError($form, $headers, false);
721
                    }
722
723
                    $size = count($data);
724
                    if ($size < 1) {