| @@ 38-40 (lines=3) @@ | ||
| 35 | ||
| 36 | $this->addObsoleteWarnings(); |
|
| 37 | ||
| 38 | if ($this->lexer->isNextTokenAny(array(EmailLexer::S_OPENQBRACKET, EmailLexer::S_OPENBRACKET))) { |
|
| 39 | return new InvalidEmail(new ExpectingDTEXT(), $this->lexer->token['value']); |
|
| 40 | } |
|
| 41 | ||
| 42 | if ($this->lexer->isNextTokenAny( |
|
| 43 | array(EmailLexer::S_HTAB, EmailLexer::S_SP, $this->lexer->token['type'] === EmailLexer::CRLF) |
|
| @@ 58-60 (lines=3) @@ | ||
| 55 | return new ValidEmail(); |
|
| 56 | } |
|
| 57 | ||
| 58 | if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB))) { |
|
| 59 | return new InvalidEmail(new CRLFX2(), $this->lexer->token['value']); |
|
| 60 | } |
|
| 61 | ||
| 62 | //this has no coverage. Condition is repeated from above one |
|
| 63 | if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB))) { |
|
| @@ 63-65 (lines=3) @@ | ||
| 60 | } |
|
| 61 | ||
| 62 | //this has no coverage. Condition is repeated from above one |
|
| 63 | if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SP, EmailLexer::S_HTAB))) { |
|
| 64 | return new InvalidEmail(new CRLFAtTheEnd(), $this->lexer->token['value']); |
|
| 65 | } |
|
| 66 | } |
|
| 67 | ||
| 68 | /** |
|