Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 184-188 (lines=5) @@
181
182
                    $size = count($data);
183
184
                    if ($size < 1) {
185
                        $this->addErrors(trans('admin.common.csv_invalid_no_data'));
186
187
                        return $this->renderWithError($form, $headers, false);
188
                    }
189
190
                    $headerSize = count($columnHeaders);
191
                    $headerByKey = array_flip(array_map($getId, $headers));
@@ 681-685 (lines=5) @@
678
                    }
679
680
                    $size = count($data);
681
                    if ($size < 1) {
682
                        $this->addErrors(trans('admin.common.csv_invalid_no_data'));
683
684
                        return $this->renderWithError($form, $headers, false);
685
                    }
686
                    $this->entityManager->getConfiguration()->setSQLLogger(null);
687
                    $this->entityManager->getConnection()->beginTransaction();
688
                    // CSVファイルの登録処理