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
|
@@ 146-152 (lines=7) @@
|
143 |
|
$openedParenthesis--; |
144 |
|
} |
145 |
|
} |
146 |
|
if ($this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS) { |
147 |
|
if ($openedParenthesis === 0) { |
148 |
|
throw new UnopenedComment(); |
149 |
|
} else { |
150 |
|
$openedParenthesis--; |
151 |
|
} |
152 |
|
} |
153 |
|
|
154 |
|
$this->checkConsecutiveDots(); |
155 |
|
$this->checkDomainPartExceptions($prev); |