Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
32 | 12 | public function getRange( float $step = null) : \SplFixedArray |
|
33 | { |
||
34 | 12 | $step = is_null($step) ? $this->range_steps : $step; |
|
35 | 12 | $min = mceil($this->min(), $step); |
|
36 | 12 | $max = mfloor($this->max(), $step); |
|
37 | |||
38 | 12 | return \SplFixedArray::fromArray( range($min, $max, $step)); |
|
39 | } |
||
40 | |||
42 |