Code Duplication    Length = 17-17 lines in 2 locations

Controller/Adminhtml/Adminlogin/Verify.php 1 location

@@ 69-85 (lines=17) @@
66
     * @param Session          $adminSession
67
     * @param Fetcher          $fetcher
68
     */
69
    public function __construct(
70
        Context $context,
71
        UserAdmin $userAdmin,
72
        AdminUser $adminGetter,
73
        IsUsingTwoFactor $isUsingTwoFactor,
74
        TwoFactorSecret $twoFactorSecret,
75
        GoogleVerify $verify,
76
        IsVerified $isVerified,
77
        Session $adminSession,
78
        Fetcher $fetcher
79
    ) {
80
        parent::__construct($context, $userAdmin, $adminGetter, $fetcher, $isUsingTwoFactor);
81
        $this->twoFactorSecret = $twoFactorSecret;
82
        $this->verify          = $verify;
83
        $this->isVerified      = $isVerified;
84
        $this->adminSession    = $adminSession;
85
    }
86
87
    /**
88
     * Dispatch request

Controller/Customerlogin/Verify.php 1 location

@@ 70-86 (lines=17) @@
67
     * @param CustomerAdmin $customerAdmin
68
     * @param IsUsingTwoFactor $isUsingTwoFactor
69
     */
70
    public function __construct(
71
        Context $context,
72
        Customer $customerGetter,
73
        TwoFactorSecret $secret,
74
        GoogleVerify $verify,
75
        Fetcher $fetcher,
76
        IsVerified $isVerified,
77
        Session $customerSession,
78
        CustomerAdmin $customerAdmin,
79
        IsUsingTwoFactor $isUsingTwoFactor
80
    ) {
81
        parent::__construct($context, $customerAdmin, $customerGetter, $fetcher, $isUsingTwoFactor);
82
        $this->secret          = $secret;
83
        $this->verify          = $verify;
84
        $this->isVerified      = $isVerified;
85
        $this->customerSession = $customerSession;
86
    }
87
88
    /**
89
     * Dispatch request