Code Duplication    Length = 3-3 lines in 2 locations

EmailValidator/Parser/Parser.php 2 locations

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