Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 162-166 (lines=5) @@
159
                if (!empty($formFile)) {
160
                    log_info('商品CSV登録開始');
161
                    $data = $this->getImportData($formFile);
162
                    if ($data === false) {
163
                        $this->addErrors(trans('admin.common.csv_invalid_format'));
164
165
                        return $this->renderWithError($form, $headers, false);
166
                    }
167
                    $getId = function ($item) {
168
                        return $item['id'];
169
                    };
@@ 658-662 (lines=5) @@
655
                if (!empty($formFile)) {
656
                    log_info('カテゴリCSV登録開始');
657
                    $data = $this->getImportData($formFile);
658
                    if ($data === false) {
659
                        $this->addErrors(trans('admin.common.csv_invalid_format'));
660
661
                        return $this->renderWithError($form, $headers, false);
662
                    }
663
664
                    $getId = function ($item) {
665
                        return $item['id'];