| @@ 154-160 (lines=7) @@ | ||
| 151 | return $result; |
|
| 152 | } |
|
| 153 | ||
| 154 | if ($this->lexer->token['type'] !== EmailLexer::S_OPENBRACKET) { |
|
| 155 | $literalResult = $this->parseDomainLiteral(); |
|
| 156 | //Invalid literal parsing |
|
| 157 | if($literalResult->isInvalid()) { |
|
| 158 | return $literalResult; |
|
| 159 | } |
|
| 160 | } |
|
| 161 | ||
| 162 | $this->checkLabelLength($prev); |
|
| 163 | ||
| @@ 40-47 (lines=8) @@ | ||
| 37 | return new InvalidEmail(new DotAtStart(), $this->lexer->token['value']); |
|
| 38 | } |
|
| 39 | ||
| 40 | if ($this->lexer->token['type'] === EmailLexer::S_DQUOTE) { |
|
| 41 | $dquoteParsingResult = $this->parseDoubleQuote(); |
|
| 42 | ||
| 43 | //Invalid double quote parsing |
|
| 44 | if($dquoteParsingResult->isInvalid()) { |
|
| 45 | return $dquoteParsingResult; |
|
| 46 | } |
|
| 47 | } |
|
| 48 | ||
| 49 | if ($this->lexer->token['type'] === EmailLexer::S_OPENPARENTHESIS || |
|
| 50 | $this->lexer->token['type'] === EmailLexer::S_CLOSEPARENTHESIS ) { |
|