| Conditions | 4 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | 156 | protected function doContains($id) |
|
| 54 | { |
||
| 55 | 156 | if (! isset($this->data[$id])) { |
|
| 56 | 156 | return false; |
|
| 57 | } |
||
| 58 | |||
| 59 | 144 | $expiration = $this->data[$id][1]; |
|
| 60 | |||
| 61 | 144 | if ($expiration && $expiration < time()) { |
|
| 62 | 2 | $this->doDelete($id); |
|
| 63 | |||
| 64 | 2 | return false; |
|
| 65 | } |
||
| 66 | |||
| 67 | 144 | return true; |
|
| 68 | } |
||
| 114 |