EmailValidator/Parser/LocalPart.php 1 location
|
@@ 38-44 (lines=7) @@
|
35 |
|
$this->parseComments(); |
36 |
|
$openedParenthesis += $this->getOpenedParenthesis(); |
37 |
|
} |
38 |
|
if ($this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS) { |
39 |
|
if ($openedParenthesis === 0) { |
40 |
|
throw new UnopenedComment(); |
41 |
|
} else { |
42 |
|
$openedParenthesis--; |
43 |
|
} |
44 |
|
} |
45 |
|
|
46 |
|
$this->checkConsecutiveDots(); |
47 |
|
|
EmailValidator/Parser/DomainPart.php 1 location
|
@@ 164-170 (lines=7) @@
|
161 |
|
$openedParenthesis--; |
162 |
|
} |
163 |
|
} |
164 |
|
if ($this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS) { |
165 |
|
if ($openedParenthesis === 0) { |
166 |
|
throw new UnopenedComment(); |
167 |
|
} else { |
168 |
|
$openedParenthesis--; |
169 |
|
} |
170 |
|
} |
171 |
|
|
172 |
|
$this->checkConsecutiveDots(); |
173 |
|
$this->checkDomainPartExceptions($prev); |