Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 846-853 (lines=8) @@
843
                            $categoriesIdList[$Category->getId()] = true;
844
                        }
845
                    }
846
                } else {
847
                    $message = trans('admin.common.csv_invalid_not_found_target', [
848
                        '%line%' => $line,
849
                        '%name%' => $headerByKey['product_category'],
850
                        '%target_name%' => $category,
851
                    ]);
852
                    $this->addErrors($message);
853
                }
854
            }
855
        }
856
    }
@@ 893-900 (lines=8) @@
890
                        $this->entityManager->persist($ProductTags);
891
                    }
892
                }
893
                if (!$Tag) {
894
                    $message = trans('admin.common.csv_invalid_not_found_target', [
895
                        '%line%' => $data->key() + 1,
896
                        '%name%' => $headerByKey['product_tag'],
897
                        '%target_name%' => $tag_id,
898
                    ]);
899
                    $this->addErrors($message);
900
                }
901
            }
902
        }
903
    }