Code Duplication    Length = 3-3 lines in 2 locations

EmailValidator/Parser/Parser.php 2 locations

@@ 170-172 (lines=3) @@
167
            throw new ExpectingATEXT();
168
        }
169
170
        if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB, EmailLexer::C_DEL))) {
171
            return false;
172
        }
173
174
        $this->warnings[QuotedPart::CODE] =
175
            new QuotedPart($this->lexer->getPrevious()['type'], $this->lexer->token['type']);
@@ 191-193 (lines=3) @@
188
            return new InvalidEmail(new ReasonExpectingATEXT('Found ATOM after escaping'), $this->lexer->token['value']);
189
        }
190
191
        if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB, EmailLexer::C_DEL))) {
192
            return new ValidEmail();
193
        }
194
195
        $this->warnings[QuotedPart::CODE] =
196
            new QuotedPart($this->lexer->getPrevious()['type'], $this->lexer->token['type']);