Passed
Push — master ( 9e9b54...8c04f5 )
by
unknown
38s
created
src/Zicht/Itertools/itertools.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -203,8 +203,8 @@
 block discarded – undo
203 203
  * > count(2.5, 0.5)
204 204
  * 2.5 3.0 3.5 4.0 ...
205 205
  *
206
- * @param int|float $start
207
- * @param int|float $step
206
+ * @param integer $start
207
+ * @param integer $step
208 208
  * @return CountIterator
209 209
  */
210 210
 function count($start = 0, $step = 1)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
     switch (sizeof($args)) {
573 573
         case 2:
574 574
             $strategy = conversions\mixed_to_value_getter($args[0]);
575
-            $closure = function ($value, $key) use ($strategy) {
575
+            $closure = function($value, $key) use ($strategy) {
576 576
                 $tempVarPhp54 = call_user_func($strategy, $value, $key);
577 577
                 return !empty($tempVarPhp54);
578 578
             };
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
         case 3:
583 583
             $strategy = conversions\mixed_to_value_getter($args[0]);
584 584
             $userClosure = $args[1];
585
-            $closure = function ($value, $key) use ($strategy, $userClosure) {
585
+            $closure = function($value, $key) use ($strategy, $userClosure) {
586 586
                 return call_user_func($userClosure, call_user_func($strategy, $value, $key));
587 587
             };
588 588
             $iterable = conversions\mixed_to_iterator($args[2]);
Please login to merge, or discard this patch.
src/Zicht/Itertools/lib/Interfaces/ChainInterface.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,6 @@
 block discarded – undo
21 21
      * until it is exhausted, then proceeds to the next iterable, until
22 22
      * all the iterables are exhausted.
23 23
      *
24
-     * @param array|string|\Iterator $iterable
25
-     * @param array|string|\Iterator $iterable2
26 24
      * @return Itertools\lib\ChainIterator
27 25
      *
28 26
      * @see Itertools\lib\Traits\ChainTrait::chain
Please login to merge, or discard this patch.
src/Zicht/Itertools/lib/Interfaces/MapInterface.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@
 block discarded – undo
19 19
     /**
20 20
      * Make an iterator that applies $strategy to every entry in this iterable
21 21
      *
22
-     * @param null|string|\Closure $strategy
23
-     * @param array|string|\Iterator $iterable2
22
+     * @param \Closure $strategy
24 23
      * @return Itertools\lib\MapIterator
25 24
      *
26 25
      * @see Itertools\lib\Traits\MapTrait::map
Please login to merge, or discard this patch.
src/Zicht/Itertools/lib/Interfaces/ReduceInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
     /**
20 20
      * Reduce an iterator to a single value
21 21
      *
22
-     * @param array|string|\Iterator $iterable
23 22
      * @param string|\Closure $closure
24 23
      * @param mixed $initializer
25 24
      * @return mixed
Please login to merge, or discard this patch.
src/Zicht/Itertools/lib/Interfaces/ZipInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
     /**
20 20
      * Returns an iterator where one or more iterables are zipped together
21 21
      *
22
-     * @param array|string|\Iterator $iterable2
23 22
      * @return Itertools\lib\ZipIterator
24 23
      *
25 24
      * @see Itertools\lib\Traits\ZipTrait::zip
Please login to merge, or discard this patch.
src/Zicht/Itertools/lib/Traits/ChainTrait.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,6 @@
 block discarded – undo
26 26
      * > iter\iterable('ABC', 'DEF')->chain()
27 27
      * A B C D E F
28 28
      *
29
-     * @param array|string|\Iterator $iterable
30
-     * @param array|string|\Iterator $iterable2
31 29
      * @return null|ChainIterator
32 30
      */
33 31
     public function chain(/* $iterable, $iterable2, ... */)
Please login to merge, or discard this patch.
src/Zicht/Itertools/lib/Traits/MapTrait.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,6 @@
 block discarded – undo
35 35
      * 2.5 3.5 4.5
36 36
      *
37 37
      * @param null|string|\Closure $strategy
38
-     * @param array|string|\Iterator $iterable2
39 38
      * @return MapIterator
40 39
      */
41 40
     public function map($strategy /*, $iterable2, ... */)
Please login to merge, or discard this patch.
src/Zicht/Itertools/lib/Traits/ZipTrait.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@
 block discarded – undo
22 22
      * > zip([1, 2, 3], ['a', 'b', 'c'])
23 23
      * [1, 'a'] [2, 'b'] [3, 'c']
24 24
      *
25
-     * @param array|string|\Iterator $iterable2
26 25
      * @return ZipIterator
27 26
      */
28 27
     public function zip(/* $iterable2, ... */)
Please login to merge, or discard this patch.
src/Zicht/Itertools/lib/Traits/FilterTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         if ($this instanceof \Iterator) {
24 24
             $strategy = conversions\mixed_to_value_getter($strategy);
25
-            $isValid = function ($value, $key) use ($strategy) {
25
+            $isValid = function($value, $key) use ($strategy) {
26 26
                 $tempVarPhp54 = $strategy($value, $key);
27 27
                 return !empty($tempVarPhp54);
28 28
             };
Please login to merge, or discard this patch.