Code Duplication    Length = 3-4 lines in 2 locations

src/Parser/DomainPart.php 2 locations

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