Code Duplication    Length = 3-4 lines in 2 locations

src/Parser/DomainPart.php 2 locations

@@ 356-358 (lines=3) @@
353
            throw new ConsecutiveAt();
354
        }
355
356
        if ($this->lexer->token['type'] === EmailLexer::S_OPENQBRACKET && $prev['type'] !== EmailLexer::S_AT) {
357
            throw new ExpectingATEXT();
358
        }
359
360
        if ($this->lexer->token['type'] === EmailLexer::S_HYPHEN && $this->lexer->isNextToken(EmailLexer::S_DOT)) {
361
            throw new DomainHyphened();
@@ 364-367 (lines=4) @@
361
            throw new DomainHyphened();
362
        }
363
364
        if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH
365
            && $this->lexer->isNextToken(EmailLexer::GENERIC)) {
366
            throw new ExpectingATEXT();
367
        }
368
    }
369
370
    /**