Passed
Push — master ( bb819e...23296b )
by Carsten
02:08
created
src/SalesmanFilterIterator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      * @param \Traversable $collection      Collection of SalesmanProviderInterface
15 15
      * @param array|int    $salesman_filter The Salesman ID to filter for
16 16
      */
17
-    public function __construct( \Traversable $collection, $salesman_filter )
17
+    public function __construct(\Traversable $collection, $salesman_filter)
18 18
     {
19 19
         // Allow for getSalesmanId
20 20
         $this->salesman_filter = $salesman_filter instanceOf SalesmanProviderInterface
@@ -23,12 +23,12 @@  discard block
 block discarded – undo
23 23
 
24 24
         // Cast to array
25 25
         if (!is_array($this->salesman_filter)) {
26
-            $this->salesman_filter = array( $this->salesman_filter );
26
+            $this->salesman_filter = array($this->salesman_filter);
27 27
         }
28 28
 
29 29
         // Take care of Traversable's two faces,
30 30
         // since both IteratorAggregate and Iterator implement Traversable
31
-        parent::__construct( $collection instanceOf \IteratorAggregate ? $collection->getIterator() : $collection );
31
+        parent::__construct($collection instanceOf \IteratorAggregate ? $collection->getIterator() : $collection);
32 32
 
33 33
     }
34 34
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         // Cast to array
46 46
         $item_salesman_id = $item->getSalesmanId();
47 47
         if (!is_array($item_salesman_id)) {
48
-            $item_salesman_id = array( $item_salesman_id );
48
+            $item_salesman_id = array($item_salesman_id);
49 49
         }
50 50
 
51 51
         // Check intersection
Please login to merge, or discard this patch.