Code Duplication    Length = 3-4 lines in 4 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/Parser.php 1 location

@@ 142-144 (lines=3) @@
139
140
    protected function checkConsecutiveDots()
141
    {
142
        if ($this->lexer->token['type'] === EmailLexer::S_DOT && $this->lexer->isNextToken(EmailLexer::S_DOT)) {
143
            throw new ConsecutiveDot();
144
        }
145
    }
146
147
    /**

EmailValidator/Parser/DomainPart.php 2 locations

@@ 371-373 (lines=3) @@
368
            throw new ExpectingATEXT();
369
        }
370
371
        if ($this->lexer->token['type'] === EmailLexer::S_HYPHEN && $this->lexer->isNextToken(EmailLexer::S_DOT)) {
372
            throw new DomainHyphened();
373
        }
374
375
        if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH
376
            && $this->lexer->isNextToken(EmailLexer::GENERIC)) {
@@ 375-378 (lines=4) @@
372
            throw new DomainHyphened();
373
        }
374
375
        if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH
376
            && $this->lexer->isNextToken(EmailLexer::GENERIC)) {
377
            throw new ExpectingATEXT();
378
        }
379
    }
380
381
    /**