| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 55 | 12 | public function setItems($items) |
|
| 56 | { |
||
| 57 | 12 | $this->items = $items; |
|
| 58 | 12 | $total = count($items); |
|
| 59 | 12 | $this->data = [ |
|
| 60 | 12 | 'index1' => 1, |
|
| 61 | 12 | 'index' => 0, |
|
| 62 | 12 | 'revindex1' => $total, |
|
| 63 | 12 | 'revindex' => $total - 1, |
|
| 64 | 12 | 'first' => true, |
|
| 65 | 12 | 'last' => false, |
|
| 66 | 12 | 'odd' => false, |
|
| 67 | 12 | 'even' => true, |
|
| 68 | 'length' => $total |
||
| 69 | 12 | ]; |
|
| 70 | 12 | } |
|
| 71 | |||
| 112 |