@@ 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 | return new ValidEmail(); |
|
68 | } |
@@ 39-41 (lines=3) @@ | ||
36 | ||
37 | $this->addObsoleteWarnings(); |
|
38 | ||
39 | if ($this->lexer->isNextTokenAny(array(EmailLexer::S_OPENBRACKET, EmailLexer::S_OPENBRACKET))) { |
|
40 | return new InvalidEmail(new ExpectingDTEXT(), $this->lexer->token['value']); |
|
41 | } |
|
42 | ||
43 | if ($this->lexer->isNextTokenAny( |
|
44 | array(EmailLexer::S_HTAB, EmailLexer::S_SP, $this->lexer->token['type'] === EmailLexer::CRLF) |