EmailValidator/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 |
|
/** |
EmailValidator/Parser/DomainPart.php 2 locations
|
@@ 356-358 (lines=3) @@
|
353 |
|
throw new ExpectingATEXT(); |
354 |
|
} |
355 |
|
|
356 |
|
if ($this->lexer->token['type'] === EmailLexer::S_HYPHEN && $this->lexer->isNextToken(EmailLexer::S_DOT)) { |
357 |
|
throw new DomainHyphened(); |
358 |
|
} |
359 |
|
|
360 |
|
if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH |
361 |
|
&& $this->lexer->isNextToken(EmailLexer::GENERIC)) { |
|
@@ 360-363 (lines=4) @@
|
357 |
|
throw new DomainHyphened(); |
358 |
|
} |
359 |
|
|
360 |
|
if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH |
361 |
|
&& $this->lexer->isNextToken(EmailLexer::GENERIC)) { |
362 |
|
throw new ExpectingATEXT(); |
363 |
|
} |
364 |
|
} |
365 |
|
|
366 |
|
/** |
EmailValidator/Parser/LocalPart.php 2 locations
|
@@ 52-56 (lines=5) @@
|
49 |
|
|
50 |
|
$this->checkConsecutiveDots(); |
51 |
|
|
52 |
|
if ($this->lexer->token['type'] === EmailLexer::S_DOT && |
53 |
|
$this->lexer->isNextToken(EmailLexer::S_AT) |
54 |
|
) { |
55 |
|
throw new DotAtEnd(); |
56 |
|
} |
57 |
|
|
58 |
|
$this->warnEscaping(); |
59 |
|
$this->isInvalidToken($this->lexer->token, $closingQuote); |
|
@@ 109-111 (lines=3) @@
|
106 |
|
$this->warnings[CFWSWithFWS::CODE] = new CFWSWithFWS(); |
107 |
|
$setSpecialsWarning = false; |
108 |
|
} |
109 |
|
if ($this->lexer->token['type'] === EmailLexer::S_BACKSLASH && $this->lexer->isNextToken(EmailLexer::S_DQUOTE)) { |
110 |
|
$this->lexer->moveNext(); |
111 |
|
} |
112 |
|
|
113 |
|
$this->lexer->moveNext(); |
114 |
|
|