Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 129-136 (lines=8) @@
126
        return $verified;
127
    }
128
129
    private function handleError()
130
    {
131
        $this->isVerified->removeIsVerified($this->adminSession);
132
        $this->addErrorMessage();
133
        $authenticateUrl = $this->fetcher->getAuthenticationUrl(true);
134
135
        return $this->redirect($authenticateUrl);
136
    }
137
138
    private function addErrorMessage()
139
    {

src/Controller/Customerlogin/Verify.php 1 location

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