src/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 |
|
|
src/Parser/DomainPart.php 1 location
|
@@ 180-186 (lines=7) @@
|
| 177 |
|
$openedParenthesis--; |
| 178 |
|
} |
| 179 |
|
} |
| 180 |
|
if ($this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS) { |
| 181 |
|
if ($openedParenthesis === 0) { |
| 182 |
|
throw new UnopenedComment(); |
| 183 |
|
} else { |
| 184 |
|
$openedParenthesis--; |
| 185 |
|
} |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
$this->checkConsecutiveDots(); |
| 189 |
|
$this->checkDomainPartExceptions($prev); |