@@ -26,11 +26,11 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | public function getValueByIndex(int $index) |
| 28 | 28 | { |
| 29 | - if ((float)$this->step === 0.0 && $index < 0) { |
|
| 29 | + if ((float) $this->step === 0.0 && $index < 0) { |
|
| 30 | 30 | throw new \DivisionByZeroError(); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - return $this->start * ($this->step ** $index); |
|
| 33 | + return $this->start*($this->step ** $index); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
@@ -39,6 +39,6 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function getNextValue($previousValue) |
| 41 | 41 | { |
| 42 | - return $previousValue * $this->step; |
|
| 42 | + return $previousValue*$this->step; |
|
| 43 | 43 | } |
| 44 | 44 | } |