Code Duplication    Length = 15-15 lines in 3 locations

src/Handler/PutOptionBasedConfigurableItemToCartHandler.php 1 location

@@ 57-71 (lines=15) @@
54
     * @param OrderProcessorInterface $orderProcessor
55
     * @param ObjectManager $manager
56
     */
57
    public function __construct(
58
        OrderRepositoryInterface $cartRepository,
59
        ProductRepositoryInterface $productRepository,
60
        CartItemFactoryInterface $cartItemFactory,
61
        OrderItemQuantityModifierInterface $orderItemModifier,
62
        OrderProcessorInterface $orderProcessor,
63
        ObjectManager $manager
64
    ) {
65
        $this->cartRepository = $cartRepository;
66
        $this->productRepository = $productRepository;
67
        $this->cartItemFactory = $cartItemFactory;
68
        $this->orderItemModifier = $orderItemModifier;
69
        $this->orderProcessor = $orderProcessor;
70
        $this->manager = $manager;
71
    }
72
73
74
    /**

src/Handler/PutSimpleItemToCartHandler.php 1 location

@@ 56-70 (lines=15) @@
53
     * @param OrderProcessorInterface $orderProcessor
54
     * @param ObjectManager $manager
55
     */
56
    public function __construct(
57
        OrderRepositoryInterface $cartRepository,
58
        ProductRepositoryInterface $productRepository,
59
        CartItemFactoryInterface $cartItemFactory,
60
        OrderItemQuantityModifierInterface $orderItemModifier,
61
        OrderProcessorInterface $orderProcessor,
62
        ObjectManager $manager
63
    ) {
64
        $this->cartRepository = $cartRepository;
65
        $this->productRepository = $productRepository;
66
        $this->cartItemFactory = $cartItemFactory;
67
        $this->orderItemModifier = $orderItemModifier;
68
        $this->orderProcessor = $orderProcessor;
69
        $this->manager = $manager;
70
    }
71
72
    /**
73
     * @param PutSimpleItemToCart $putSimpleItemToCart

src/Handler/PutVariantBasedConfigurableItemToCartHandler.php 1 location

@@ 56-70 (lines=15) @@
53
     * @param OrderProcessorInterface $orderProcessor
54
     * @param ObjectManager $manager
55
     */
56
    public function __construct(
57
        OrderRepositoryInterface $cartRepository,
58
        ProductVariantRepositoryInterface $productVariantRepository,
59
        CartItemFactoryInterface $cartItemFactory,
60
        OrderItemQuantityModifierInterface $orderItemModifier,
61
        OrderProcessorInterface $orderProcessor,
62
        ObjectManager $manager
63
    ) {
64
        $this->cartRepository = $cartRepository;
65
        $this->productVariantRepository = $productVariantRepository;
66
        $this->cartItemFactory = $cartItemFactory;
67
        $this->orderItemModifier = $orderItemModifier;
68
        $this->orderProcessor = $orderProcessor;
69
        $this->manager = $manager;
70
    }
71
72
    /**
73
     * @param PutVariantBasedConfigurableItemToCart $putConfigurableItemToCart