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/LocalPart.php 1 location
|
@@ 55-59 (lines=5) @@
|
| 52 |
|
|
| 53 |
|
$this->checkConsecutiveDots(); |
| 54 |
|
|
| 55 |
|
if ($this->lexer->token['type'] === EmailLexer::S_DOT && |
| 56 |
|
$this->lexer->isNextToken(EmailLexer::S_AT) |
| 57 |
|
) { |
| 58 |
|
throw new DotAtEnd(); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
$this->warnEscaping(); |
| 62 |
|
$this->isInvalidToken($this->lexer->token, $closingQuote); |
EmailValidator/Parser/Parser.php 1 location
|
@@ 138-140 (lines=3) @@
|
| 135 |
|
|
| 136 |
|
protected function checkConsecutiveDots() |
| 137 |
|
{ |
| 138 |
|
if ($this->lexer->token['type'] === EmailLexer::S_DOT && $this->lexer->isNextToken(EmailLexer::S_DOT)) { |
| 139 |
|
throw new ConsecutiveDot(); |
| 140 |
|
} |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
/** |