Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1014-1021 (lines=8) @@
1011
                            $categoriesIdList[$Category->getId()] = true;
1012
                        }
1013
                    }
1014
                } else {
1015
                    $message = trans('admin.common.csv_invalid_not_found_target', [
1016
                        '%line%' => $line,
1017
                        '%name%' => $headerByKey['product_category'],
1018
                        '%target_name%' => $category,
1019
                    ]);
1020
                    $this->addErrors($message);
1021
                }
1022
            }
1023
        }
1024
    }
@@ 1064-1071 (lines=8) @@
1061
                        $this->entityManager->persist($ProductTags);
1062
                    }
1063
                }
1064
                if (!$Tag) {
1065
                    $message = trans('admin.common.csv_invalid_not_found_target', [
1066
                        '%line%' => $data->key() + 1,
1067
                        '%name%' => $headerByKey['product_tag'],
1068
                        '%target_name%' => $tag_id,
1069
                    ]);
1070
                    $this->addErrors($message);
1071
                }
1072
            }
1073
        }
1074
    }