@@ -87,7 +87,7 @@ |
||
| 87 | 87 | */ |
| 88 | 88 | function chain() |
| 89 | 89 | { |
| 90 | - return function ($chainIterator, $b) { |
|
| 90 | + return function($chainIterator, $b) { |
|
| 91 | 91 | if (!($chainIterator instanceof ChainIterator)) { |
| 92 | 92 | throw new \InvalidArgumentException('Argument $A must be a ChainIterator. Did your call "reduce" with "new ChainIterator()" as the initial parameter?'); |
| 93 | 93 | } |
@@ -602,7 +602,7 @@ discard block |
||
| 602 | 602 | switch (sizeof($args)) { |
| 603 | 603 | case 2: |
| 604 | 604 | $strategy = Conversions::mixedToValueGetter($args[0]); |
| 605 | - $closure = function ($value, $key) use ($strategy) { |
|
| 605 | + $closure = function($value, $key) use ($strategy) { |
|
| 606 | 606 | $tempVarPhp54 = call_user_func($strategy, $value, $key); |
| 607 | 607 | return !empty($tempVarPhp54); |
| 608 | 608 | }; |
@@ -612,7 +612,7 @@ discard block |
||
| 612 | 612 | case 3: |
| 613 | 613 | $strategy = Conversions::mixedToValueGetter($args[0]); |
| 614 | 614 | $userClosure = $args[1]; |
| 615 | - $closure = function ($value, $key) use ($strategy, $userClosure) { |
|
| 615 | + $closure = function($value, $key) use ($strategy, $userClosure) { |
|
| 616 | 616 | return call_user_func($userClosure, call_user_func($strategy, $value, $key)); |
| 617 | 617 | }; |
| 618 | 618 | $iterable = Conversions::mixedToIterator($args[2]); |