@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | public static function directSequence($length): Iterator |
| 11 | 11 | { |
| 12 | 12 | $current = 0; |
| 13 | - return new CallbackIterator(static function () use (& $current, $length) { |
|
| 13 | + return new CallbackIterator(static function() use (& $current, $length) { |
|
| 14 | 14 | if ($current === $length) { |
| 15 | 15 | return (new IterateResult())->setAsRunOut(); |
| 16 | 16 | } |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | public static function reverseSequence($length): Iterator |
| 23 | 23 | { |
| 24 | 24 | $current = $length - 1; |
| 25 | - return new CallbackIterator(static function () use (& $current) { |
|
| 25 | + return new CallbackIterator(static function() use (& $current) { |
|
| 26 | 26 | if ($current === -1) { |
| 27 | 27 | return (new IterateResult())->setAsRunOut(); |
| 28 | 28 | } |