src/Parser/DoubleQuote.php 1 location
|
@@ 49-51 (lines=3) @@
|
| 46 |
|
|
| 47 |
|
$this->lexer->moveNext(); |
| 48 |
|
|
| 49 |
|
if (!$this->escaped() && isset($invalid[$this->lexer->token['type']])) { |
| 50 |
|
return new InvalidEmail(new ExpectingATEXT("Expecting ATEXT between DQUOTE"), $this->lexer->token['value']); |
| 51 |
|
} |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
$prev = $this->lexer->getPrevious(); |
src/Parser/LocalPart.php 1 location
|
@@ 76-78 (lines=3) @@
|
| 73 |
|
return $resultEscaping; |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
if (isset($this->invalidTokens[$this->lexer->token['type']])) { |
| 77 |
|
return new InvalidEmail(new ExpectingATEXT('Invalid token found'), $this->lexer->token['value']); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
$resultFWS = $this->parseLocalFWS(); |
| 81 |
|
if($resultFWS->isInvalid()) { |
src/Parser/DomainPart.php 1 location
|
@@ 235-237 (lines=3) @@
|
| 232 |
|
EmailLexer::S_LOWERTHAN => true, |
| 233 |
|
); |
| 234 |
|
|
| 235 |
|
if (isset($invalidDomainTokens[$this->lexer->token['type']])) { |
| 236 |
|
return new InvalidEmail(new ExpectingATEXT('Invalid token in domain'), $this->lexer->token['value']); |
| 237 |
|
} |
| 238 |
|
|
| 239 |
|
if ($this->lexer->token['type'] === EmailLexer::S_COMMA) { |
| 240 |
|
return new InvalidEmail(new CommaInDomain(), $this->lexer->token['value']); |