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

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