Code Duplication    Length = 3-3 lines in 3 locations

EmailValidator/Parser/FoldingWhiteSpace.php 2 locations

@@ 54-56 (lines=3) @@
51
            return new ValidEmail();
52
        }
53
54
        if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB))) {
55
            return new InvalidEmail(new CRLFX2(), $this->lexer->token['value']);
56
        }
57
58
        //this has no coverage. Condition is repeated from above one
59
        if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB))) {
@@ 59-61 (lines=3) @@
56
        }
57
58
        //this has no coverage. Condition is repeated from above one
59
        if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB))) {
60
            return new InvalidEmail(new CRLFAtTheEnd(), $this->lexer->token['value']);
61
        }
62
    }
63
     
64
    /**

EmailValidator/Parser/DomainLiteral.php 1 location

@@ 36-38 (lines=3) @@
33
34
            $this->addObsoleteWarnings();
35
36
            if ($this->lexer->isNextTokenAny(array(EmailLexer::S_OPENQBRACKET, EmailLexer::S_OPENBRACKET))) {
37
                return new InvalidEmail(new ExpectingDTEXT(), $this->lexer->token['value']);
38
            }
39
40
            if ($this->lexer->isNextTokenAny(
41
                array(EmailLexer::S_HTAB, EmailLexer::S_SP, $this->lexer->token['type'] === EmailLexer::CRLF)