EmailValidator/Parser/DomainLiteral.php 1 location
|
@@ 31-33 (lines=3) @@
|
| 28 |
|
$addressLiteral = ''; |
| 29 |
|
|
| 30 |
|
do { |
| 31 |
|
if ($this->lexer->token['type'] === EmailLexer::C_NUL) { |
| 32 |
|
return new InvalidEmail(new ExpectingDTEXT(), $this->lexer->token['value']); |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
$this->addObsoleteWarnings(); |
| 36 |
|
|
EmailValidator/Parser/DomainPart.php 1 location
|
@@ 51-53 (lines=3) @@
|
| 48 |
|
$prev = $this->lexer->getPrevious(); |
| 49 |
|
$length = strlen($this->domainPart); |
| 50 |
|
|
| 51 |
|
if ($prev['type'] === EmailLexer::S_DOT) { |
| 52 |
|
return new InvalidEmail(new ReasonDotAtEnd(), $this->lexer->token['value']); |
| 53 |
|
} |
| 54 |
|
if ($prev['type'] === EmailLexer::S_HYPHEN) { |
| 55 |
|
return new InvalidEmail(new ReasonDomainHyphened('Hypen found at the end of the domain'), $prev['value']); |
| 56 |
|
} |