EmailValidator/Parser/DomainPart.php 2 locations
|
@@ 356-358 (lines=3) @@
|
| 353 |
|
throw new ExpectingATEXT(); |
| 354 |
|
} |
| 355 |
|
|
| 356 |
|
if ($this->lexer->token['type'] === EmailLexer::S_HYPHEN && $this->lexer->isNextToken(EmailLexer::S_DOT)) { |
| 357 |
|
throw new DomainHyphened(); |
| 358 |
|
} |
| 359 |
|
|
| 360 |
|
if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH |
| 361 |
|
&& $this->lexer->isNextToken(EmailLexer::GENERIC)) { |
|
@@ 360-363 (lines=4) @@
|
| 357 |
|
throw new DomainHyphened(); |
| 358 |
|
} |
| 359 |
|
|
| 360 |
|
if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH |
| 361 |
|
&& $this->lexer->isNextToken(EmailLexer::GENERIC)) { |
| 362 |
|
throw new ExpectingATEXT(); |
| 363 |
|
} |
| 364 |
|
} |
| 365 |
|
|
| 366 |
|
/** |
EmailValidator/Parser/DoubleQuote.php 1 location
|
@@ 43-45 (lines=3) @@
|
| 40 |
|
$this->warnings[CFWSWithFWS::CODE] = new CFWSWithFWS(); |
| 41 |
|
$setSpecialsWarning = false; |
| 42 |
|
} |
| 43 |
|
if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH && $this->lexer->isNextToken(EmailLexer::S_DQUOTE)) { |
| 44 |
|
$this->lexer->moveNext(); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
$this->lexer->moveNext(); |
| 48 |
|
|
EmailValidator/Parser/Parser.php 1 location
|
@@ 142-144 (lines=3) @@
|
| 139 |
|
|
| 140 |
|
protected function checkConsecutiveDots() |
| 141 |
|
{ |
| 142 |
|
if ($this->lexer->token['type'] === EmailLexer::S_DOT && $this->lexer->isNextToken(EmailLexer::S_DOT)) { |
| 143 |
|
throw new ConsecutiveDot(); |
| 144 |
|
} |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
/** |