| @@ 42-49 (lines=8) @@ | ||
| 39 | return new InvalidEmail(new DotAtStart(), $this->lexer->token['value']); |
|
| 40 | } |
|
| 41 | ||
| 42 | if ($this->lexer->token['type'] === EmailLexer::S_DQUOTE) { |
|
| 43 | $dquoteParsingResult = $this->parseDoubleQuote(); |
|
| 44 | ||
| 45 | //Invalid double quote parsing |
|
| 46 | if($dquoteParsingResult->isInvalid()) { |
|
| 47 | return $dquoteParsingResult; |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| 51 | if ($this->lexer->token['type'] === EmailLexer::S_OPENPARENTHESIS || |
|
| 52 | $this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS ) { |
|
| @@ 169-175 (lines=7) @@ | ||
| 166 | return $exceptionsResult; |
|
| 167 | } |
|
| 168 | ||
| 169 | if ($this->lexer->token['type'] === EmailLexer::S_OPENBRACKET) { |
|
| 170 | $literalResult = $this->parseDomainLiteral(); |
|
| 171 | //Invalid literal parsing |
|
| 172 | if($literalResult->isInvalid()) { |
|
| 173 | return $literalResult; |
|
| 174 | } |
|
| 175 | } |
|
| 176 | ||
| 177 | $this->checkLabelLength($prev); |
|
| 178 | ||