Passed
Push — master ( 9871c3...e9f7fb )
by
unknown
02:12
created
src/Zicht/Itertools/reductions.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  */
16 16
 function add()
17 17
 {
18
-    return function ($a, $b) {
18
+    return function($a, $b) {
19 19
         if (!is_numeric($a)) {
20 20
             throw new \InvalidArgumentException(sprintf('Argument $A must be numeric to perform addition, not %s', is_object($a) ? get_class($a) : gettype($a)));
21 21
         }
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
  */
34 34
 function sub()
35 35
 {
36
-    return function ($a, $b) {
36
+    return function($a, $b) {
37 37
         if (!is_numeric($a)) {
38 38
             throw new \InvalidArgumentException(sprintf('Argument $A must be numeric to perform subtraction, not %s', is_object($a) ? get_class($a) : gettype($a)));
39 39
         }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
  */
52 52
 function mul()
53 53
 {
54
-    return function ($a, $b) {
54
+    return function($a, $b) {
55 55
         if (!is_numeric($a)) {
56 56
             throw new \InvalidArgumentException(sprintf('Argument $A must be numeric to perform multiplication, not %s', is_object($a) ? get_class($a) : gettype($a)));
57 57
         }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
  */
70 70
 function min()
71 71
 {
72
-    return function ($a, $b) {
72
+    return function($a, $b) {
73 73
         if (!(is_numeric($a) || $a instanceof \DateTime)) {
74 74
             throw new \InvalidArgumentException(sprintf('Argument $A must be numeric to determine minimum, not %s', is_object($a) ? get_class($a) : gettype($a)));
75 75
         }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
  */
88 88
 function max()
89 89
 {
90
-    return function ($a, $b) {
90
+    return function($a, $b) {
91 91
         if (!(is_numeric($a) || $a instanceof \DateTime)) {
92 92
             throw new \InvalidArgumentException(sprintf('Argument $A must be numeric to determine maximum, not %s', is_object($a) ? get_class($a) : gettype($a)));
93 93
         }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     if (!is_string($glue)) {
110 110
         throw new \InvalidArgumentException(sprintf('Argument $GLUE must be a string to join, not %s', is_object($glue) ? get_class($glue) : gettype($glue)));
111 111
     }
112
-    return function ($a, $b) use ($glue) {
112
+    return function($a, $b) use ($glue) {
113 113
         if (!is_string($a)) {
114 114
             throw new \InvalidArgumentException(sprintf('Argument $A must be a string to join, not %s', is_object($a) ? get_class($a) : gettype($a)));
115 115
         }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
  */
132 132
 function chain()
133 133
 {
134
-    return function ($chainIterator, $b) {
134
+    return function($chainIterator, $b) {
135 135
         if (!($chainIterator instanceof ChainIterator)) {
136 136
             throw new \InvalidArgumentException('Argument $A must be a ChainIterator.  Did your call "reduce" with "new ChainIterator()" as the initial parameter?');
137 137
         }
Please login to merge, or discard this patch.