Code Duplication    Length = 3-4 lines in 2 locations

src/Parser/DomainPart.php 2 locations

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