src/Parser/DomainPart.php 1 location
|
@@ 134-142 (lines=9) @@
|
| 131 |
|
return $notAllowedChars; |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
if ($this->lexer->token['type'] === EmailLexer::S_OPENPARENTHESIS || |
| 135 |
|
$this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS ) { |
| 136 |
|
$commentsResult = $this->parseComments(); |
| 137 |
|
|
| 138 |
|
//Invalid comment parsing |
| 139 |
|
if($commentsResult->isInvalid()) { |
| 140 |
|
return $commentsResult; |
| 141 |
|
} |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
$dotsResult = $this->checkConsecutiveDots(); |
| 145 |
|
if ($dotsResult->isInvalid()) { |
src/Parser/LocalPart.php 1 location
|
@@ 47-55 (lines=9) @@
|
| 44 |
|
} |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
if ($this->lexer->token['type'] === EmailLexer::S_OPENPARENTHESIS || |
| 48 |
|
$this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS ) { |
| 49 |
|
$commentsResult = $this->parseComments(); |
| 50 |
|
|
| 51 |
|
//Invalid comment parsing |
| 52 |
|
if($commentsResult->isInvalid()) { |
| 53 |
|
return $commentsResult; |
| 54 |
|
} |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
if ($this->lexer->token['type'] === EmailLexer::S_DOT && $this->lexer->isNextToken(EmailLexer::S_DOT)) { |
| 58 |
|
return new InvalidEmail(new ConsecutiveDot(), $this->lexer->token['value']); |