| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 82 | 30 | public function loop() |
|
| 83 | { |
||
| 84 | 30 | $this->data['index']++; |
|
| 85 | 30 | $this->data['index1'] = $this->data['index'] + 1; |
|
| 86 | |||
| 87 | 30 | $this->data['even'] = $this->data['index'] % 2 === 0; |
|
| 88 | 30 | $this->data['odd'] = ! $this->data['even']; |
|
| 89 | |||
| 90 | 30 | $this->data['first'] = $this->data['index'] === 0; |
|
| 91 | |||
| 92 | 30 | if (null !== $this->data['length']) { |
|
| 93 | 24 | $this->data['revindex']--; |
|
| 94 | 24 | $this->data['revindex1'] = $this->data['revindex'] + 1; |
|
| 95 | 24 | $this->data['last'] = $this->data['revindex'] === 0; |
|
| 96 | 24 | } |
|
| 97 | 30 | } |
|
| 98 | } |
||
| 99 |