src/Egulias/EmailValidator/Parser/DomainPart.php 1 location
|
@@ 149-155 (lines=7) @@
|
| 146 |
|
$openedParenthesis--; |
| 147 |
|
} |
| 148 |
|
} |
| 149 |
|
if ($this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS) { |
| 150 |
|
if ($openedParenthesis === 0) { |
| 151 |
|
throw new UnopenedComment(); |
| 152 |
|
} else { |
| 153 |
|
$openedParenthesis--; |
| 154 |
|
} |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
$this->checkConsecutiveDots(); |
| 158 |
|
$this->checkDomainPartExceptions($prev); |
src/Egulias/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 |
|
|