Code Duplication    Length = 18-18 lines in 2 locations

src/Controller/Adminhtml/Adminlogin/Verify.php 1 location

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

src/Controller/Customerlogin/Verify.php 1 location

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