Code Duplication    Length = 11-13 lines in 2 locations

src/Eccube/Controller/Mypage/MypageController.php 1 location

@@ 81-93 (lines=13) @@
78
     * @param BaseInfoRepository $baseInfoRepository
79
     * @param PurchaseFlow $purchaseFlow
80
     */
81
    public function __construct(
82
        OrderRepository $orderRepository,
83
        CustomerFavoriteProductRepository $customerFavoriteProductRepository,
84
        CartService $cartService,
85
        BaseInfoRepository $baseInfoRepository,
86
        PurchaseFlow $purchaseFlow
87
    ) {
88
        $this->orderRepository = $orderRepository;
89
        $this->customerFavoriteProductRepository = $customerFavoriteProductRepository;
90
        $this->BaseInfo = $baseInfoRepository->get();
91
        $this->cartService = $cartService;
92
        $this->purchaseFlow = $purchaseFlow;
93
    }
94
95
    /**
96
     * ログイン画面.

src/Eccube/Controller/CartController.php 1 location

@@ 61-71 (lines=11) @@
58
     * @param PurchaseFlow $cartPurchaseFlow
59
     * @param BaseInfoRepository $baseInfoRepository
60
     */
61
    public function __construct(
62
        ProductClassRepository $productClassRepository,
63
        CartService $cartService,
64
        PurchaseFlow $cartPurchaseFlow,
65
        BaseInfoRepository $baseInfoRepository
66
    ) {
67
        $this->productClassRepository = $productClassRepository;
68
        $this->cartService = $cartService;
69
        $this->purchaseFlow = $cartPurchaseFlow;
70
        $this->baseInfo = $baseInfoRepository->get();
71
    }
72
73
    /**
74
     * カート画面.