Code Duplication    Length = 3-4 lines in 2 locations

EmailValidator/Parser/DoubleQuote.php 1 location

@@ 43-45 (lines=3) @@
40
                $this->warnings[CFWSWithFWS::CODE] = new CFWSWithFWS();
41
                $setSpecialsWarning = false;
42
            }
43
            if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH && $this->lexer->isNextToken(EmailLexer::S_DQUOTE)) {
44
                $this->lexer->moveNext();
45
            }
46
47
            $this->lexer->moveNext();
48

EmailValidator/Parser/DomainPart.php 1 location

@@ 239-242 (lines=4) @@
236
            return new InvalidEmail(new ReasonDomainHyphened('Hypen found near DOT'), $this->lexer->token['value']);
237
        }
238
239
        if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH
240
            && $this->lexer->isNextToken(EmailLexer::GENERIC)) {
241
            throw new ExpectingATEXT();
242
        }
243
244
        return new ValidEmail();
245
    }