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/DomainPart.php 1 location
|
@@ 215-217 (lines=3) @@
|
| 212 |
|
EmailLexer::S_LOWERTHAN => true, |
| 213 |
|
); |
| 214 |
|
|
| 215 |
|
if (isset($invalidDomainTokens[$this->lexer->token['type']])) { |
| 216 |
|
return new InvalidEmail(new ExpectingATEXT('Invalid token in domain'), $this->lexer->token['value']); |
| 217 |
|
} |
| 218 |
|
|
| 219 |
|
if ($this->lexer->token['type'] === EmailLexer::S_COMMA) { |
| 220 |
|
return new InvalidEmail(new CommaInDomain(), $this->lexer->token['value']); |
src/Parser/LocalPart.php 1 location
|
@@ 72-74 (lines=3) @@
|
| 69 |
|
return $resultEscaping; |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
if (isset($this->invalidTokens[$this->lexer->token['type']])) { |
| 73 |
|
return new InvalidEmail(new ExpectingATEXT('Invalid token found'), $this->lexer->token['value']); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
$resultFWS = $this->parseLocalFWS(); |
| 77 |
|
if($resultFWS->isInvalid()) { |