Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 954-961 (lines=8) @@
951
                            $categoriesIdList[$Category->getId()] = true;
952
                        }
953
                    }
954
                } else {
955
                    $message = trans('admin.common.csv_invalid_not_found_target', [
956
                        '%line%' => $line,
957
                        '%name%' => $headerByKey['product_category'],
958
                        '%target_name%' => $category,
959
                    ]);
960
                    $this->addErrors($message);
961
                }
962
            }
963
        }
964
    }
@@ 1004-1011 (lines=8) @@
1001
                        $this->entityManager->persist($ProductTags);
1002
                    }
1003
                }
1004
                if (!$Tag) {
1005
                    $message = trans('admin.common.csv_invalid_not_found_target', [
1006
                        '%line%' => $data->key() + 1,
1007
                        '%name%' => $headerByKey['product_tag'],
1008
                        '%target_name%' => $tag_id,
1009
                    ]);
1010
                    $this->addErrors($message);
1011
                }
1012
            }
1013
        }
1014
    }