Code Duplication    Length = 10-13 lines in 2 locations

src/wp-includes/class-pop3.php 2 locations

@@ 150-162 (lines=13) @@
147
        } elseif(!isset($this->FP)) {
148
            $this->ERROR = "POP3 pass: " . _("connection not established");
149
            return false;
150
        } else {
151
            $reply = $this->send_cmd("PASS $pass");
152
            if(!$this->is_ok($reply)) {
153
                $this->ERROR = "POP3 pass: " . _("Authentication failed") . " [$reply]";
154
                $this->quit();
155
                return false;
156
            } else {
157
                //  Auth successful.
158
                $count = $this->last("count");
159
                $this->COUNT = $count;
160
                return $count;
161
            }
162
        }
163
    }
164
165
    function apop ($login,$pass) {
@@ 195-204 (lines=10) @@
192
                $APOPString = md5($AuthString);
193
                $cmd = "APOP $login $APOPString";
194
                $reply = $this->send_cmd($cmd);
195
                if(!$this->is_ok($reply)) {
196
                    $this->ERROR = "POP3 apop: " . _("apop authentication failed") . ' - ' . _("abort");
197
                    $retVal = $this->login($login,$pass);
198
                    return $retVal;
199
                } else {
200
                    //  Auth successful.
201
                    $count = $this->last("count");
202
                    $this->COUNT = $count;
203
                    return $count;
204
                }
205
            }
206
        }
207
    }