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/IDRightPart.php 1 location
|
@@ 24-26 (lines=3) @@
|
21 |
|
EmailLexer::S_LOWERTHAN => true, |
22 |
|
); |
23 |
|
|
24 |
|
if (isset($invalidDomainTokens[$this->lexer->token['type']])) { |
25 |
|
return new InvalidEmail(new ExpectingATEXT('Invalid token in domain: ' . $this->lexer->token['value']), $this->lexer->token['value']); |
26 |
|
} |
27 |
|
return new ValidEmail(); |
28 |
|
} |
29 |
|
} |
src/Parser/LocalPart.php 1 location
|
@@ 101-103 (lines=3) @@
|
98 |
|
EmailLexer::S_SEMICOLON => EmailLexer::S_SEMICOLON, |
99 |
|
EmailLexer::INVALID => EmailLexer::INVALID |
100 |
|
); |
101 |
|
if (isset($invalidTokens[$this->lexer->token['type']])) { |
102 |
|
return new InvalidEmail(new ExpectingATEXT('Invalid token found'), $this->lexer->token['value']); |
103 |
|
} |
104 |
|
return new ValidEmail(); |
105 |
|
} |
106 |
|
|
src/Parser/DomainPart.php 1 location
|
@@ 272-274 (lines=3) @@
|
269 |
|
$validDomainTokens[EmailLexer::S_CLOSEPARENTHESIS] = true; |
270 |
|
} |
271 |
|
|
272 |
|
if (!isset($validDomainTokens[$this->lexer->token['type']])) { |
273 |
|
return new InvalidEmail(new ExpectingATEXT('Invalid token in domain: ' . $this->lexer->token['value']), $this->lexer->token['value']); |
274 |
|
} |
275 |
|
|
276 |
|
return new ValidEmail(); |
277 |
|
} |