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));
@@ 692-696 (lines=5) @@
689
                    }
690
691
                    $size = count($data);
692
                    if ($size < 1) {
693
                        $this->addErrors(trans('admin.common.csv_invalid_no_data'));
694
695
                        return $this->renderWithError($form, $headers, false);
696
                    }
697
                    $this->entityManager->getConfiguration()->setSQLLogger(null);
698
                    $this->entityManager->getConnection()->beginTransaction();
699
                    // CSVファイルの登録処理