Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 151-155 (lines=5) @@
148
149
                    $size = count($data);
150
151
                    if ($size < 1) {
152
                        $this->addErrors(trans('csvimport.text.error.data_not_found'));
153
154
                        return $this->renderWithError($form, $headers, false);
155
                    }
156
157
                    $headerSize = count($columnHeaders);
158
                    $headerByKey = array_flip(array_map($getId, $headers));
@@ 514-518 (lines=5) @@
511
                    }
512
513
                    $size = count($data);
514
                    if ($size < 1) {
515
                        $this->addErrors(trans('csvimport.text.error.data_not_found'));
516
517
                        return $this->renderWithError($form, $headers, false);
518
                    }
519
                    $this->entityManager->getConfiguration()->setSQLLogger(null);
520
                    $this->entityManager->getConnection()->beginTransaction();
521
                    // CSVファイルの登録処理