Code Duplication    Length = 13-15 lines in 2 locations

Controller/products/productView.php 1 location

@@ 41-55 (lines=15) @@
38
     * @param Client $eventClient
39
     * @param ProductViewModel $productView
40
     */
41
    public function __construct(
42
        Context $context,
43
        JsonFactory $resultJsonFactory,
44
        SessionManager $sessionManager,
45
        CustomerSession $customerSession,
46
        Client $eventClient,
47
        ProductViewModel $productView
48
    ) {
49
        $this->_resultJsonFactory = $resultJsonFactory;
50
        $this->_sessionManager = $sessionManager;
51
        $this->_customerSession = $customerSession;
52
        $this->_eventClient = $eventClient;
53
        $this->_productView = $productView;
54
        parent::__construct($context);
55
    }
56
57
    /**
58
     * @return $this

Observer/Frontend/SendGuestActionsCustomLogin.php 1 location

@@ 57-69 (lines=13) @@
54
     * @param Client $eventClient
55
     * @param CustomerSession $customerSession
56
     */
57
    public function __construct(
58
        Context $context,
59
        Config $config,
60
        SessionManager $sessionManager,
61
        Client $eventClient,
62
        CustomerSession $customerSession
63
    ) {
64
        $this->_context = $context;
65
        $this->_config = $config;
66
        $this->_sessionManager = $sessionManager;
67
        $this->_customerSession = $customerSession;
68
        $this->_eventClient = $eventClient;
69
    }
70
71
    /**
72
     * Check on customer login if they have any product view to capture