| Conditions | 4 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 86 | protected function getList() |
||
| 87 | { |
||
| 88 | $years = []; |
||
| 89 | $cmp = function ($y) { |
||
| 90 | if ($this->step > 0) { |
||
| 91 | return $y <= $this->end; |
||
| 92 | } |
||
| 93 | if ($this->step < 0) { |
||
| 94 | return $y >= $this->end; |
||
| 95 | } |
||
| 96 | return false; |
||
| 97 | }; |
||
| 98 | for ($y = $this->start; $cmp($y); $y += $this->step) { |
||
| 99 | $years[sprintf($this->formatValue,$y)] = $this->format($y); |
||
| 100 | } |
||
| 101 | return $years; |
||
| 102 | } |
||
| 103 | |||
| 124 | } |