Code Duplication    Length = 3-4 lines in 2 locations

EmailValidator/Parser/Parser.php 2 locations

@@ 70-73 (lines=4) @@
67
     */
68
    protected function validateQuotedPair()
69
    {
70
        if (!($this->lexer->token['type'] === EmailLexer::INVALID
71
            || $this->lexer->token['type'] === EmailLexer::C_DEL)) {
72
            throw new ExpectingQPair();
73
        }
74
75
        $this->warnings[QuotedPart::CODE] =
76
            new QuotedPart($this->lexer->getPrevious()['type'], $this->lexer->token['type']);
@@ 129-131 (lines=3) @@
126
            throw new AtextAfterCFWS();
127
        }
128
129
        if ($this->lexer->token['type'] === EmailLexer::S_LF || $this->lexer->token['type'] === EmailLexer::C_NUL) {
130
            throw new ExpectingCTEXT();
131
        }
132
133
        if ($this->lexer->isNextToken(EmailLexer::S_AT) || $previous['type']  === EmailLexer::S_AT) {
134
            $this->warnings[CFWSNearAt::CODE] = new CFWSNearAt();