@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | */ |
| 16 | 16 | function add() |
| 17 | 17 | { |
| 18 | - return function ($a, $b) { |
|
| 18 | + return function($a, $b) { |
|
| 19 | 19 | return $a + $b; |
| 20 | 20 | }; |
| 21 | 21 | } |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | function sub() |
| 29 | 29 | { |
| 30 | - return function ($a, $b) { |
|
| 30 | + return function($a, $b) { |
|
| 31 | 31 | return $a - $b; |
| 32 | 32 | }; |
| 33 | 33 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | function mul() |
| 41 | 41 | { |
| 42 | - return function ($a, $b) { |
|
| 42 | + return function($a, $b) { |
|
| 43 | 43 | return $a * $b; |
| 44 | 44 | }; |
| 45 | 45 | } |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | function min() |
| 53 | 53 | { |
| 54 | - return function ($a, $b) { |
|
| 54 | + return function($a, $b) { |
|
| 55 | 55 | return $a < $b ? $a : $b; |
| 56 | 56 | }; |
| 57 | 57 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | function max() |
| 65 | 65 | { |
| 66 | - return function ($a, $b) { |
|
| 66 | + return function($a, $b) { |
|
| 67 | 67 | return $a < $b ? $b : $a; |
| 68 | 68 | }; |
| 69 | 69 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | if (!is_string($glue)) { |
| 80 | 80 | throw new \InvalidArgumentException(sprintf('Argument $GLUE must be a string to join, not %s', is_object($glue) ? get_class($glue) : gettype($glue))); |
| 81 | 81 | } |
| 82 | - return function ($a, $b) use ($glue) { |
|
| 82 | + return function($a, $b) use ($glue) { |
|
| 83 | 83 | if (!is_string($a)) { |
| 84 | 84 | throw new \InvalidArgumentException(sprintf('Argument $A must be a string to join, not %s', is_object($a) ? get_class($a) : gettype($a))); |
| 85 | 85 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | */ |
| 102 | 102 | function chain() |
| 103 | 103 | { |
| 104 | - return function ($chainIterator, $b) { |
|
| 104 | + return function($chainIterator, $b) { |
|
| 105 | 105 | if (!($chainIterator instanceof ChainIterator)) { |
| 106 | 106 | throw new \InvalidArgumentException('Argument $A must be a ChainIterator. Did your call "reduce" with "new ChainIterator()" as the initial parameter?'); |
| 107 | 107 | } |