Code Duplication    Length = 3-4 lines in 2 locations

EmailValidator/Parser/Parser.php 2 locations

@@ 51-54 (lines=4) @@
48
     */
49
    protected function validateQuotedPair()
50
    {
51
        if (!($this->lexer->token['type'] === EmailLexer::INVALID
52
            || $this->lexer->token['type'] === EmailLexer::C_DEL)) {
53
            throw new ExpectingQPair();
54
        }
55
56
        $previous = $this->lexer->getPrevious() ?: ['type' => null];
57
@@ 109-111 (lines=3) @@
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();
111
        }
112
113
        if ($this->lexer->isNextToken(EmailLexer::S_AT) || $previous['type']  === EmailLexer::S_AT) {
114
            $this->warnings[CFWSNearAt::CODE] = new CFWSNearAt();