Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 965-972 (lines=8) @@
962
                            $categoriesIdList[$Category->getId()] = true;
963
                        }
964
                    }
965
                } else {
966
                    $message = trans('admin.common.csv_invalid_not_found_target', [
967
                        '%line%' => $line,
968
                        '%name%' => $headerByKey['product_category'],
969
                        '%target_name%' => $category,
970
                    ]);
971
                    $this->addErrors($message);
972
                }
973
            }
974
        }
975
    }
@@ 1015-1022 (lines=8) @@
1012
                        $this->entityManager->persist($ProductTags);
1013
                    }
1014
                }
1015
                if (!$Tag) {
1016
                    $message = trans('admin.common.csv_invalid_not_found_target', [
1017
                        '%line%' => $data->key() + 1,
1018
                        '%name%' => $headerByKey['product_tag'],
1019
                        '%target_name%' => $tag_id,
1020
                    ]);
1021
                    $this->addErrors($message);
1022
                }
1023
            }
1024
        }
1025
    }