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