Code Duplication    Length = 3-3 lines in 2 locations

src/Parser/Comment.php 1 location

@@ 84-86 (lines=3) @@
81
            return false;
82
        }
83
84
        if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB, EmailLexer::C_DEL))) {
85
            return false;
86
        }
87
88
        $this->warnings[QuotedPart::CODE] =
89
            new QuotedPart($this->lexer->getPrevious()['type'], $this->lexer->token['type']);

src/Parser/LocalPart.php 1 location

@@ 158-160 (lines=3) @@
155
            return new InvalidEmail(new ExpectingATEXT('Found ATOM after escaping'), $this->lexer->token['value']);
156
        }
157
158
        if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB, EmailLexer::C_DEL))) {
159
            return new ValidEmail();
160
        }
161
162
        return new ValidEmail();
163
    }