Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
47 | protected function checkConsecutiveDots(): Result |
||
48 | 132 | { |
|
49 | 2 | if ($this->lexer->current->isA(EmailLexer::S_DOT) && $this->lexer->isNextToken(EmailLexer::S_DOT)) { |
|
|
|||
50 | return new InvalidEmail(new ConsecutiveDot(), $this->lexer->current->value); |
||
51 | } |
||
52 | 132 | ||
53 | return new ValidEmail(); |
||
54 | } |
||
64 |