EmailValidator/Parser/DomainPart.php 2 locations
|
@@ 378-380 (lines=3) @@
|
| 375 |
|
throw new ExpectingATEXT(); |
| 376 |
|
} |
| 377 |
|
|
| 378 |
|
if ($this->lexer->token['type'] === EmailLexer::S_HYPHEN && $this->lexer->isNextToken(EmailLexer::S_DOT)) { |
| 379 |
|
throw new DomainHyphened(); |
| 380 |
|
} |
| 381 |
|
|
| 382 |
|
if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH |
| 383 |
|
&& $this->lexer->isNextToken(EmailLexer::GENERIC)) { |
|
@@ 382-385 (lines=4) @@
|
| 379 |
|
throw new DomainHyphened(); |
| 380 |
|
} |
| 381 |
|
|
| 382 |
|
if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH |
| 383 |
|
&& $this->lexer->isNextToken(EmailLexer::GENERIC)) { |
| 384 |
|
throw new ExpectingATEXT(); |
| 385 |
|
} |
| 386 |
|
} |
| 387 |
|
|
| 388 |
|
/** |
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 |
|
/** |