@@ -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 | |
@@ -116,11 +116,11 @@ discard block |
||
| 116 | 116 | { |
| 117 | 117 | $it = iter([6, 7, 8]); |
| 118 | 118 | |
| 119 | - $sum1 = function ($sum, int $a) { |
|
| 119 | + $sum1 = function($sum, int $a) { |
|
| 120 | 120 | return $sum + $a; |
| 121 | 121 | }; |
| 122 | 122 | |
| 123 | - $sum2 = function (int $sum, int $a) { |
|
| 123 | + $sum2 = function(int $sum, int $a) { |
|
| 124 | 124 | return $sum + $a; |
| 125 | 125 | }; |
| 126 | 126 | |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | |
| 131 | 131 | public function testTakeWhile() |
| 132 | 132 | { |
| 133 | - $belowTen = function (int $item) { |
|
| 133 | + $belowTen = function(int $item) { |
|
| 134 | 134 | return $item < 10; |
| 135 | 135 | }; |
| 136 | 136 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | public function testSkipWhile() |
| 141 | 141 | { |
| 142 | - $belowTen = function (int $item) { |
|
| 142 | + $belowTen = function(int $item) { |
|
| 143 | 143 | return $item < 10; |
| 144 | 144 | }; |
| 145 | 145 | |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | |
| 189 | 189 | public function testAll() |
| 190 | 190 | { |
| 191 | - $positive = function (int $item) { |
|
| 191 | + $positive = function(int $item) { |
|
| 192 | 192 | return $item >= 0; |
| 193 | 193 | }; |
| 194 | 194 | |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | |
| 199 | 199 | public function testAny() |
| 200 | 200 | { |
| 201 | - $positive = function (int $item) { |
|
| 201 | + $positive = function(int $item) { |
|
| 202 | 202 | return $item > 0; |
| 203 | 203 | }; |
| 204 | 204 | |