Code Duplication    Length = 17-17 lines in 2 locations

src/Controller/Customerlogin/Verify.php 1 location

@@ 75-91 (lines=17) @@
72
     * @param IsVerified      $isVerified
73
     * @param Session         $customerSession
74
     */
75
    public function __construct(
76
        Context $context,
77
        Customer $customerGetter,
78
        TwoFactorSecret $secret,
79
        GoogleVerify $verify,
80
        TwoFactorUrls $twoFactorUrls,
81
        IsVerified $isVerified,
82
        Session $customerSession
83
    ) {
84
        parent::__construct($context);
85
        $this->secret          = $secret;
86
        $this->verify          = $verify;
87
        $this->customerGetter  = $customerGetter;
88
        $this->twoFactorUrls   = $twoFactorUrls;
89
        $this->isVerified      = $isVerified;
90
        $this->customerSession = $customerSession;
91
    }
92
93
    /**
94
     * Dispatch request

src/Observer/Controller/Frontend/Postdispatch.php 1 location

@@ 77-93 (lines=17) @@
74
     * @param IsUsingTwoFactor $isUsingTwoFactor
75
     * @param TwoFactorUrls    $twoFactorUrls
76
     */
77
    public function __construct(
78
        ResponseFactory $responseFactory,
79
        UrlInterface $url,
80
        Customer $customerGetter,
81
        IsVerified $isVerified,
82
        Session $customerSession,
83
        IsUsingTwoFactor $isUsingTwoFactor,
84
        TwoFactorUrls $twoFactorUrls
85
    ) {
86
        $this->responseFactory  = $responseFactory;
87
        $this->url              = $url;
88
        $this->customerGetter   = $customerGetter;
89
        $this->isUsingTwoFactor = $isUsingTwoFactor;
90
        $this->isVerified       = $isVerified;
91
        $this->twoFactorUrls    = $twoFactorUrls;
92
        $this->customerSession = $customerSession;
93
    }
94
95
    /**
96
     * @param Observer $observer