| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 82 | public function loop() |
||
| 83 | 15 | { |
|
| 84 | $this->data['index']++; |
||
| 85 | 15 | $this->data['index1'] = $this->data['index'] + 1; |
|
| 86 | $this->data['revindex']--; |
||
| 87 | $this->data['revindex1'] = $this->data['revindex'] + 1; |
||
| 88 | |||
| 89 | $this->data['even'] = $this->data['index'] % 2 === 0; |
||
| 90 | $this->data['odd'] = ! $this->data['even']; |
||
| 91 | 15 | ||
| 92 | $this->data['first'] = $this->data['index'] === 0; |
||
| 93 | 15 | $this->data['last'] = $this->data['revindex'] === 0; |
|
| 94 | 15 | } |
|
| 95 | } |
||
| 96 |