src/Parser/LocalPart.php 2 locations
|
@@ 49-53 (lines=5) @@
|
| 46 |
|
|
| 47 |
|
$this->checkConsecutiveDots(); |
| 48 |
|
|
| 49 |
|
if ($this->lexer->token['type'] === EmailLexer::S_DOT && |
| 50 |
|
$this->lexer->isNextToken(EmailLexer::S_AT) |
| 51 |
|
) { |
| 52 |
|
throw new DotAtEnd(); |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
$this->warnEscaping(); |
| 56 |
|
$this->isInvalidToken($this->lexer->token, $closingQuote); |
|
@@ 99-101 (lines=3) @@
|
| 96 |
|
$this->warnings[CFWSWithFWS::CODE] = new CFWSWithFWS(); |
| 97 |
|
$setSpecialsWarning = false; |
| 98 |
|
} |
| 99 |
|
if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH && $this->lexer->isNextToken(EmailLexer::S_DQUOTE)) { |
| 100 |
|
$this->lexer->moveNext(); |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
$this->lexer->moveNext(); |
| 104 |
|
|
src/Parser/Parser.php 1 location
|
@@ 140-142 (lines=3) @@
|
| 137 |
|
|
| 138 |
|
protected function checkConsecutiveDots() |
| 139 |
|
{ |
| 140 |
|
if ($this->lexer->token['type'] === EmailLexer::S_DOT && $this->lexer->isNextToken(EmailLexer::S_DOT)) { |
| 141 |
|
throw new ConsecutiveDot(); |
| 142 |
|
} |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
/** |
src/Parser/DomainPart.php 1 location
|
@@ 368-370 (lines=3) @@
|
| 365 |
|
throw new ExpectingATEXT(); |
| 366 |
|
} |
| 367 |
|
|
| 368 |
|
if ($this->lexer->token['type'] === EmailLexer::S_HYPHEN && $this->lexer->isNextToken(EmailLexer::S_DOT)) { |
| 369 |
|
throw new DomainHyphened(); |
| 370 |
|
} |
| 371 |
|
|
| 372 |
|
if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH |
| 373 |
|
&& $this->lexer->isNextToken(EmailLexer::GENERIC)) { |