Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 765-772 (lines=8) @@
762
                        $Product->addProductCategory($ProductCategory);
763
                        $categoriesIdList[$Category->getId()] = true;
764
                    }
765
                } else {
766
                    $message = trans('csvimportcontroller.notfound.target', [
767
                        '%line%' => $line,
768
                        '%name%' => $headerByKey['product_category'],
769
                        '%target_name%' => $category,
770
                    ]);
771
                    $this->addErrors($message);
772
                }
773
            }
774
        }
775
    }
@@ 812-819 (lines=8) @@
809
                        $this->entityManager->persist($ProductTags);
810
                    }
811
                }
812
                if (!$Tag) {
813
                    $message = trans('csvimportcontroller.notfound.target', [
814
                        '%line%' => $data->key() + 1,
815
                        '%name%' => $headerByKey['product_tag'],
816
                        '%target_name%' => $tag_id,
817
                    ]);
818
                    $this->addErrors($message);
819
                }
820
            }
821
        }
822
    }