Code Duplication    Length = 7-7 lines in 2 locations

EmailValidator/Parser/DomainPart.php 1 location

@@ 178-184 (lines=7) @@
175
                    $openedParenthesis--;
176
                }
177
            }
178
            if ($this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS) {
179
                if ($openedParenthesis === 0) {
180
                    throw new UnopenedComment();
181
                } else {
182
                    $openedParenthesis--;
183
                }
184
            }
185
186
            $this->checkConsecutiveDots();
187
            $this->checkDomainPartExceptions($prev);

EmailValidator/Parser/LocalPart.php 1 location

@@ 39-45 (lines=7) @@
36
                $openedParenthesis += $this->getOpenedParenthesis();
37
            }
38
39
            if ($this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS) {
40
                if ($openedParenthesis === 0) {
41
                    throw new UnopenedComment();
42
                }
43
44
                $openedParenthesis--;
45
            }
46
47
            $this->checkConsecutiveDots();
48