Completed
Push — master ( 256c3c...d8e20a )
by Karsten
01:47
created
src/Operation/FullSet/UniqueByOperation.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,16 +37,16 @@
 block discarded – undo
37 37
     public function apply(\Iterator $set)
38 38
     {
39 39
         $map    = $this->mapper;
40
-        $result = [];
41
-        $known  = [];
40
+        $result = [ ];
41
+        $known  = [ ];
42 42
 
43 43
         foreach ($set as $item) {
44 44
 
45 45
             $mapped = $map($item);
46 46
 
47
-            if (! in_array($mapped, $known, $this->strict)) {
48
-                $known[]  = $mapped;
49
-                $result[] = $item;
47
+            if ( ! in_array($mapped, $known, $this->strict)) {
48
+                $known[ ]  = $mapped;
49
+                $result[ ] = $item;
50 50
             }
51 51
         }
52 52
 
Please login to merge, or discard this patch.