@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | function xrange(int $start, ?int $size = null, int $step = 1): Range |
| 14 | 14 | { |
| 15 | - if($size === null) { |
|
| 15 | + if ($size === null) { |
|
| 16 | 16 | [$start, $size] = [0, $start]; |
| 17 | 17 | } |
| 18 | 18 | |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | */ |
| 17 | 17 | public function getValueByIndex(int $index) |
| 18 | 18 | { |
| 19 | - return $this->start * ($this->step ** $index); |
|
| 19 | + return $this->start*($this->step ** $index); |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -25,6 +25,6 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function getNextValue($previousValue) |
| 27 | 27 | { |
| 28 | - return $previousValue * $this->step; |
|
| 28 | + return $previousValue*$this->step; |
|
| 29 | 29 | } |
| 30 | 30 | } |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | */ |
| 16 | 16 | public function getValueByIndex(int $index) |
| 17 | 17 | { |
| 18 | - return $this->start + $index * $this->step; |
|
| 18 | + return $this->start+$index*$this->step; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
@@ -24,6 +24,6 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function getNextValue($previousValue) |
| 26 | 26 | { |
| 27 | - return $previousValue + $this->step; |
|
| 27 | + return $previousValue+$this->step; |
|
| 28 | 28 | } |
| 29 | 29 | } |