Test Setup Failed
Push — master ( 502500...8f6b0a )
by Carsten
02:47
created
src/SalesmanIdAwareTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      * @var     int|string|SalesmanIdProviderInterface $salesman
12 12
      * @return  self
13 13
      */
14
-    public function setSalesmanId( $salesman )
14
+    public function setSalesmanId($salesman)
15 15
     {
16 16
         if ($salesman instanceOf SalesmanIdProviderInterface):
17 17
             $this->salesman_id = $salesman->getSalesmanId();
Please login to merge, or discard this patch.
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 SalesmanIdProviderInterface
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 SalesmanIdProviderInterface)
@@ -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.