Code Duplication    Length = 23-23 lines in 2 locations

src/Eccube/Controller/Admin/Product/CsvImportController.php 1 location

@@ 120-142 (lines=23) @@
117
     * @throws \Doctrine\ORM\NoResultException
118
     * @throws \Doctrine\ORM\NonUniqueResultException
119
     */
120
    public function __construct(
121
        DeliveryDurationRepository $deliveryDurationRepository,
122
        SaleTypeRepository $saleTypeRepository,
123
        TagRepository $tagRepository,
124
        CategoryRepository $categoryRepository,
125
        ClassCategoryRepository $classCategoryRepository,
126
        ProductStatusRepository $productStatusRepository,
127
        ProductRepository $productRepository,
128
        TaxRuleRepository $taxRuleRepository,
129
        BaseInfoRepository $baseInfoRepository,
130
        ValidatorInterface $validator
131
    ) {
132
        $this->deliveryDurationRepository = $deliveryDurationRepository;
133
        $this->saleTypeRepository = $saleTypeRepository;
134
        $this->tagRepository = $tagRepository;
135
        $this->categoryRepository = $categoryRepository;
136
        $this->classCategoryRepository = $classCategoryRepository;
137
        $this->productStatusRepository = $productStatusRepository;
138
        $this->productRepository = $productRepository;
139
        $this->taxRuleRepository = $taxRuleRepository;
140
        $this->BaseInfo = $baseInfoRepository->get();
141
        $this->validator = $validator;
142
    }
143
144
    /**
145
     * 商品登録CSVアップロード

src/Eccube/Controller/Admin/Product/ProductController.php 1 location

@@ 125-147 (lines=23) @@
122
     * @param ProductStatusRepository $productStatusRepository
123
     * @param TagRepository $tagRepository
124
     */
125
    public function __construct(
126
        CsvExportService $csvExportService,
127
        ProductClassRepository $productClassRepository,
128
        ProductImageRepository $productImageRepository,
129
        TaxRuleRepository $taxRuleRepository,
130
        CategoryRepository $categoryRepository,
131
        ProductRepository $productRepository,
132
        BaseInfoRepository $baseInfoRepository,
133
        PageMaxRepository $pageMaxRepository,
134
        ProductStatusRepository $productStatusRepository,
135
        TagRepository $tagRepository
136
    ) {
137
        $this->csvExportService = $csvExportService;
138
        $this->productClassRepository = $productClassRepository;
139
        $this->productImageRepository = $productImageRepository;
140
        $this->taxRuleRepository = $taxRuleRepository;
141
        $this->categoryRepository = $categoryRepository;
142
        $this->productRepository = $productRepository;
143
        $this->BaseInfo = $baseInfoRepository->get();
144
        $this->pageMaxRepository = $pageMaxRepository;
145
        $this->productStatusRepository = $productStatusRepository;
146
        $this->tagRepository = $tagRepository;
147
    }
148
149
    /**
150
     * @Route("/%eccube_admin_route%/product", name="admin_product")