Code Duplication    Length = 3-3 lines in 2 locations

EmailValidator/Parser/Parser.php 2 locations

@@ 189-191 (lines=3) @@
186
            throw new ExpectingATEXT();
187
        }
188
189
        if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB, EmailLexer::C_DEL))) {
190
            return false;
191
        }
192
193
        $this->warnings[QuotedPart::CODE] =
194
            new QuotedPart($this->lexer->getPrevious()['type'], $this->lexer->token['type']);
@@ 210-212 (lines=3) @@
207
            return new InvalidEmail(new ReasonExpectingATEXT('Found ATOM after escaping'), $this->lexer->token['value']);
208
        }
209
210
        if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB, EmailLexer::C_DEL))) {
211
            return new ValidEmail();
212
        }
213
214
        $this->warnings[QuotedPart::CODE] =
215
            new QuotedPart($this->lexer->getPrevious()['type'], $this->lexer->token['type']);