Code Duplication    Length = 3-3 lines in 2 locations

EmailValidator/Parser/Parser.php 2 locations

@@ 105-107 (lines=3) @@
102
            throw new CRNoLF();
103
        }
104
105
        if ($this->lexer->isNextToken(EmailLexer::GENERIC) && $previous['type']  !== EmailLexer::S_AT) {
106
            throw new AtextAfterCFWS();
107
        }
108
109
        if ($this->lexer->token['type'] === EmailLexer::S_LF || $this->lexer->token['type'] === EmailLexer::C_NUL) {
110
            throw new ExpectingCTEXT();
@@ 190-192 (lines=3) @@
187
            return $hasClosingQuote;
188
        }
189
        $previous = $this->lexer->getPrevious() ?: ['type' => null, 'value' => ''];
190
        if ($this->lexer->isNextToken(EmailLexer::GENERIC) && $previous['type'] === EmailLexer::GENERIC) {
191
            throw new ExpectingATEXT();
192
        }
193
194
        try {
195
            $this->lexer->find(EmailLexer::S_DQUOTE);