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

@@ 139-141 (lines=3) @@
136
            return new InvalidEmail(new ExpectingATEXT('Found ATOM after escaping'), $this->lexer->token['value']);
137
        }
138
139
        if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB, EmailLexer::C_DEL))) {
140
            return new ValidEmail();
141
        }
142
143
        return new ValidEmail();
144
    }