Completed
Push — master ( 1358d6...984c1e )
by Karsten
01:40
created
src/Operation/FullSet/UniqueOperation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 block discarded – undo
31 31
      */
32 32
     public function apply(\Iterator $set)
33 33
     {
34
-        $result = [];
34
+        $result = [ ];
35 35
 
36 36
         foreach ($set as $item) {
37
-            if (! in_array($item, $result, $this->strict)) {
38
-                $result[] = $item;
37
+            if ( ! in_array($item, $result, $this->strict)) {
38
+                $result[ ] = $item;
39 39
             }
40 40
         }
41 41
 
Please login to merge, or discard this patch.
src/Operation/FullSet/GroupOperation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@
 block discarded – undo
21 21
      */
22 22
     public function apply(\Iterator $set)
23 23
     {
24
-        $ret  = [];
24
+        $ret  = [ ];
25 25
         $func = $this->function;
26 26
 
27 27
         foreach ($set as $item) {
28 28
             $group = $func($item);
29 29
 
30
-            $ret[$group][] = $item;
30
+            $ret[ $group ][ ] = $item;
31 31
         }
32 32
 
33 33
         return new \ArrayIterator($ret);
Please login to merge, or discard this patch.
src/Operation/FullSet/SortByOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
         usort(
32 32
             $data,
33
-            function ($i1, $i2) use ($func) {
33
+            function($i1, $i2) use ($func) {
34 34
 
35 35
                 $val1 = $func($i1);
36 36
                 $val2 = $func($i2);
Please login to merge, or discard this patch.
src/Operation/Terminal/CollectToMapOperation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
38 38
      */
39 39
     public function apply(\Iterator $set)
40 40
     {
41
-        $result = [];
41
+        $result = [ ];
42 42
 
43 43
         $keyMapper   = $this->keyMapper;
44 44
         $valueMapper = $this->valueMapper;
45 45
 
46 46
         foreach ($set as $key => $item) {
47
-            $result[$keyMapper($item, $key)] = $valueMapper($item, $key);
47
+            $result[ $keyMapper($item, $key) ] = $valueMapper($item, $key);
48 48
         }
49 49
 
50 50
         return $result;
Please login to merge, or discard this patch.
src/Operation/Terminal/MedianOperation.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@
 block discarded – undo
37 37
         $left   = (int) floor($middle);
38 38
         $right  = (int) ceil($middle);
39 39
 
40
-        $leftVal = $data[$left];
41
-        $rightVal = $data[$right];
40
+        $leftVal = $data[ $left ];
41
+        $rightVal = $data[ $right ];
42 42
 
43
-        if (!is_scalar($leftVal) || !is_scalar($rightVal)) {
43
+        if ( ! is_scalar($leftVal) || ! is_scalar($rightVal)) {
44 44
             return 0;
45 45
         }
46 46
 
47
-        return ($data[$left] + $data[$right]) / 2;
47
+        return ($data[ $left ] + $data[ $right ]) / 2;
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
src/PsiFactoryImpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $count = count($iteratables);
35 35
 
36 36
         if ($count === 1) {
37
-            return $this->createSingleIterator($iteratables[0]);
37
+            return $this->createSingleIterator($iteratables[ 0 ]);
38 38
         }
39 39
 
40 40
         if ($count > 1) {
Please login to merge, or discard this patch.
src/Psi/IsSameDay.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     {
26 26
         $val = $this->getValue();
27 27
 
28
-        if (!$val instanceof LocalDate || !$input instanceof LocalDate) {
28
+        if ( ! $val instanceof LocalDate || ! $input instanceof LocalDate) {
29 29
             return false;
30 30
         }
31 31
 
Please login to merge, or discard this patch.
src/Psi/IsDateString.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public static function isValidDateString($str)
34 34
     {
35
-        if (!is_string($str)) {
35
+        if ( ! is_string($str)) {
36 36
             return false;
37 37
         }
38 38
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         $stamp = strtotime($str);
44 44
 
45
-        if (!is_numeric($stamp)) {
45
+        if ( ! is_numeric($stamp)) {
46 46
             return false;
47 47
         }
48 48
 
Please login to merge, or discard this patch.
src/Psi/Str/ToLower.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function __invoke($input)
23 23
     {
24
-        if (! is_scalar($input)) {
24
+        if ( ! is_scalar($input)) {
25 25
             return null;
26 26
         }
27 27
 
Please login to merge, or discard this patch.