| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function tokenizeDate($string, $offset = 0) |
||
| 35 | { |
||
| 36 | if ($this->token->isType(FormatToken::TYPE_EOF)) { |
||
| 37 | if (strlen($string) <= $offset) { |
||
| 38 | return new DateLexerResult($offset); |
||
| 39 | } |
||
| 40 | |||
| 41 | return; |
||
| 42 | } |
||
| 43 | |||
| 44 | $len = strlen($this->token->getValue()); |
||
| 45 | |||
| 46 | if (substr($string, $offset, $len) === $this->token->getValue()) { |
||
| 47 | return new DateLexerResult($offset + $len); |
||
| 48 | } |
||
| 51 |