Code Duplication    Length = 8-8 lines in 2 locations

Controller/Adminhtml/Adminlogin/Verify.php 1 location

@@ 123-130 (lines=8) @@
120
        return $verified;
121
    }
122
123
    private function handleError()
124
    {
125
        $this->isVerified->removeIsVerified($this->adminSession);
126
        $this->addErrorMessage();
127
        $authenticateUrl = $this->getUrlFetcher()->getAuthenticationUrl(true);
128
129
        return $this->redirect($authenticateUrl);
130
    }
131
132
    private function addErrorMessage()
133
    {

Controller/Customerlogin/Verify.php 1 location

@@ 135-142 (lines=8) @@
132
        return $this->redirect($accountUrl);
133
    }
134
135
    private function handleError()
136
    {
137
        $this->isVerified->removeIsVerified($this->customerSession);
138
        $this->addErrorMessage();
139
        $authenticateUrl = $this->getUrlFetcher()->getAuthenticationUrl();
140
141
        return $this->redirect($authenticateUrl);
142
    }
143
144
    private function addErrorMessage()
145
    {