Code Duplication    Length = 13-13 lines in 2 locations

Observer/AdminUser/SaveBefore.php 1 location

@@ 65-77 (lines=13) @@
62
     * @param Session          $session
63
     * @param IsVerified       $isVerified
64
     */
65
    public function __construct(
66
        IsUsingTwoFactor $isUsingTwoFactor,
67
        TwoFactorSecret $twoFactorSecret,
68
        Secret $secret,
69
        Session $session,
70
        IsVerified $isVerified
71
    ) {
72
        $this->isUsingTwoFactor = $isUsingTwoFactor;
73
        $this->twoFactorSecret  = $twoFactorSecret;
74
        $this->secret           = $secret;
75
        $this->session          = $session;
76
        $this->isVerified       = $isVerified;
77
    }
78
79
    /**
80
     * @param Observer $observer

Observer/Customer/SaveBefore.php 1 location

@@ 65-77 (lines=13) @@
62
     * @param TwoFactorSecret  $twoFactorSecret
63
     * @param IsUsingTwoFactor $isUsingTwoFactor
64
     */
65
    public function __construct(
66
        Secret $secret,
67
        IsVerified $isVerified,
68
        Session $session,
69
        TwoFactorSecret $twoFactorSecret,
70
        IsUsingTwoFactor $isUsingTwoFactor
71
    ) {
72
        $this->secret          = $secret;
73
        $this->isVerified      = $isVerified;
74
        $this->session         = $session;
75
        $this->twoFactorSecret = $twoFactorSecret;
76
        $this->isUsingTwoFactor = $isUsingTwoFactor;
77
    }
78
79
    /**
80
     * Execute observer