Passed
Pull Request — master (#64)
by
unknown
02:42
created
src/Zicht/Itertools/util/Reductions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public static function add()
18 18
     {
19
-        return function ($a, $b) {
19
+        return function($a, $b) {
20 20
             if (!is_numeric($a)) {
21 21
                 throw new \InvalidArgumentException(sprintf('Argument $A must be numeric to perform addition, not %s', is_object($a) ? get_class($a) : gettype($a)));
22 22
             }
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public static function sub()
36 36
     {
37
-        return function ($a, $b) {
37
+        return function($a, $b) {
38 38
             if (!is_numeric($a)) {
39 39
                 throw new \InvalidArgumentException(sprintf('Argument $A must be numeric to perform subtraction, not %s', is_object($a) ? get_class($a) : gettype($a)));
40 40
             }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public static function mul()
54 54
     {
55
-        return function ($a, $b) {
55
+        return function($a, $b) {
56 56
             if (!is_numeric($a)) {
57 57
                 throw new \InvalidArgumentException(sprintf('Argument $A must be numeric to perform multiplication, not %s', is_object($a) ? get_class($a) : gettype($a)));
58 58
             }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public static function min()
72 72
     {
73
-        return function ($a, $b) {
73
+        return function($a, $b) {
74 74
             if (!(is_numeric($a) || $a instanceof \DateTime)) {
75 75
                 throw new \InvalidArgumentException(sprintf('Argument $A must be numeric to determine minimum, not %s', is_object($a) ? get_class($a) : gettype($a)));
76 76
             }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public static function max()
90 90
     {
91
-        return function ($a, $b) {
91
+        return function($a, $b) {
92 92
             if (!(is_numeric($a) || $a instanceof \DateTime)) {
93 93
                 throw new \InvalidArgumentException(sprintf('Argument $A must be numeric to determine maximum, not %s', is_object($a) ? get_class($a) : gettype($a)));
94 94
             }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         if (!is_string($glue)) {
111 111
             throw new \InvalidArgumentException(sprintf('Argument $GLUE must be a string to join, not %s', is_object($glue) ? get_class($glue) : gettype($glue)));
112 112
         }
113
-        return function ($a, $b) use ($glue) {
113
+        return function($a, $b) use ($glue) {
114 114
             if (!is_string($a)) {
115 115
                 throw new \InvalidArgumentException(sprintf('Argument $A must be a string to join, not %s', is_object($a) ? get_class($a) : gettype($a)));
116 116
             }
Please login to merge, or discard this patch.
src/Zicht/Itertools/reductions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.