Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 129-133 (lines=5) @@
126
                if (!empty($formFile)) {
127
                    log_info('商品CSV登録開始');
128
                    $data = $this->getImportData($formFile);
129
                    if ($data === false) {
130
                        $this->addErrors(trans('csvimport.text.error.format_invalid'));
131
132
                        return $this->renderWithError($form, $headers, false);
133
                    }
134
                    $getId = function ($item) {
135
                        return $item['id'];
136
                    };
@@ 495-499 (lines=5) @@
492
                if (!empty($formFile)) {
493
                    log_info('カテゴリCSV登録開始');
494
                    $data = $this->getImportData($formFile);
495
                    if ($data === false) {
496
                        $this->addErrors(trans('csvimport.text.error.format_invalid'));
497
498
                        return $this->renderWithError($form, $headers, false);
499
                    }
500
501
                    /**
502
                     * Checking the header for the data column flexible.