@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | /** |
| 12 | 12 | * @var array |
| 13 | 13 | */ |
| 14 | - private $values = []; |
|
| 14 | + private $values = [ ]; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * Iterator constructor. |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | */ |
| 160 | 160 | public function repeat(int $times): self |
| 161 | 161 | { |
| 162 | - $values = []; |
|
| 162 | + $values = [ ]; |
|
| 163 | 163 | for ($i = 0; $i < $times; $i++) { |
| 164 | 164 | $values = array_merge($values, $this->values); |
| 165 | 165 | } |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | */ |
| 325 | 325 | public function from($value): self |
| 326 | 326 | { |
| 327 | - $amount = $this->countUntil(function ($val) use ($value) { |
|
| 327 | + $amount = $this->countUntil(function($val) use ($value) { |
|
| 328 | 328 | return $val === $value; |
| 329 | 329 | }); |
| 330 | 330 | |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | */ |
| 339 | 339 | public function until($value): self |
| 340 | 340 | { |
| 341 | - $amount = $this->countUntil(function ($val) use ($value) { |
|
| 341 | + $amount = $this->countUntil(function($val) use ($value) { |
|
| 342 | 342 | return $val === $value; |
| 343 | 343 | }); |
| 344 | 344 | |
@@ -34,5 +34,5 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | function only($value): Iterator |
| 36 | 36 | { |
| 37 | - return new Iterator(is_array($value) ? $value : [$value]); |
|
| 37 | + return new Iterator(is_array($value) ? $value : [ $value ]); |
|
| 38 | 38 | } |
| 39 | 39 | \ No newline at end of file |