Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 187-191 (lines=5) @@
184
                if (!empty($formFile)) {
185
                    log_info('商品CSV登録開始');
186
                    $data = $this->getImportData($formFile);
187
                    if ($data === false) {
188
                        $this->addErrors(trans('admin.common.csv_invalid_format'));
189
190
                        return $this->renderWithError($form, $headers, false);
191
                    }
192
                    $getId = function ($item) {
193
                        return $item['id'];
194
                    };
@@ 701-705 (lines=5) @@
698
                if (!empty($formFile)) {
699
                    log_info('カテゴリCSV登録開始');
700
                    $data = $this->getImportData($formFile);
701
                    if ($data === false) {
702
                        $this->addErrors(trans('admin.common.csv_invalid_format'));
703
704
                        return $this->renderWithError($form, $headers, false);
705
                    }
706
707
                    $getId = function ($item) {
708
                        return $item['id'];