EmailValidator/Parser/DomainPart.php 1 location
|
@@ 197-205 (lines=9) @@
|
| 194 |
|
|
| 195 |
|
$this->checkNotAllowedChars($this->lexer->token); |
| 196 |
|
|
| 197 |
|
if ($this->lexer->token['type'] === EmailLexer::S_OPENPARENTHESIS || |
| 198 |
|
$this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS ) { |
| 199 |
|
$commentsResult = $this->parseComments(); |
| 200 |
|
|
| 201 |
|
//Invalid comment parsing |
| 202 |
|
if($commentsResult->isInvalid()) { |
| 203 |
|
return $commentsResult; |
| 204 |
|
} |
| 205 |
|
} |
| 206 |
|
|
| 207 |
|
$this->checkConsecutiveDots(); |
| 208 |
|
$this->checkDomainPartExceptions($prev); |
EmailValidator/Parser/LocalPart.php 1 location
|
@@ 49-57 (lines=9) @@
|
| 46 |
|
} |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
if ($this->lexer->token['type'] === EmailLexer::S_OPENPARENTHESIS || |
| 50 |
|
$this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS ) { |
| 51 |
|
$commentsResult = $this->parseComments(); |
| 52 |
|
|
| 53 |
|
//Invalid comment parsing |
| 54 |
|
if($commentsResult->isInvalid()) { |
| 55 |
|
return $commentsResult; |
| 56 |
|
} |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
if ($this->lexer->token['type'] === EmailLexer::S_DOT && $this->lexer->isNextToken(EmailLexer::S_DOT)) { |
| 60 |
|
return new InvalidEmail(new ConsecutiveDot(), $this->lexer->token['value']); |