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/DomainPart.php 1 location
|
@@ 234-237 (lines=4) @@
|
| 231 |
|
return new InvalidEmail(new ReasonDomainHyphened('Hypen found near DOT'), $this->lexer->token['value']); |
| 232 |
|
} |
| 233 |
|
|
| 234 |
|
if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH |
| 235 |
|
&& $this->lexer->isNextToken(EmailLexer::GENERIC)) { |
| 236 |
|
throw new ExpectingATEXT(); |
| 237 |
|
} |
| 238 |
|
|
| 239 |
|
return new ValidEmail(); |
| 240 |
|
} |
EmailValidator/Parser/Parser.php 1 location
|
@@ 123-125 (lines=3) @@
|
| 120 |
|
|
| 121 |
|
protected function checkConsecutiveDots() |
| 122 |
|
{ |
| 123 |
|
if ($this->lexer->token['type'] === EmailLexer::S_DOT && $this->lexer->isNextToken(EmailLexer::S_DOT)) { |
| 124 |
|
throw new ConsecutiveDot(); |
| 125 |
|
} |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
/** |