Passed
Push — features/47-laravelmethods ( baa4b5...734d23 )
by Luke
02:25
created
src/Collection/Sequence.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     /**
165 165
      * Return the key of the current element.
166 166
      *
167
-     * @return mixed|null
167
+     * @return integer
168 168
      */
169 169
     public function key()
170 170
     {
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
      * Fold (reduce) sequence into a single value.
377 377
      *
378 378
      * @param callable $funk    A callback function
379
-     * @param mixed    $initial Initial value for accumulator
379
+     * @param boolean    $initial Initial value for accumulator
380 380
      *
381 381
      * @return mixed
382 382
      */
Please login to merge, or discard this patch.
Unused Use Statements   +6 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,25 +9,21 @@
 block discarded – undo
9 9
  */
10 10
 namespace Noz\Collection;
11 11
 
12
-use BadMethodCallException;
13
-use Noz\Traits\IsArrayable;
14
-use RuntimeException;
15
-
16
-use Iterator;
17 12
 use ArrayAccess;
13
+use BadMethodCallException;
18 14
 use Countable;
19
-use SplFixedArray;
20
-use Traversable;
21
-
22 15
 use Illuminate\Support\Str;
23
-
16
+use Iterator;
24 17
 use Noz\Contracts\Arrayable;
25 18
 use Noz\Contracts\Immutable;
26 19
 use Noz\Contracts\Invokable;
27 20
 use Noz\Contracts\Structure\Sequenceable;
28
-
21
+use Noz\Traits\IsArrayable;
29 22
 use Noz\Traits\IsContainer;
30 23
 use Noz\Traits\IsImmutable;
24
+use RuntimeException;
25
+use SplFixedArray;
26
+use Traversable;
31 27
 
32 28
 use function
33 29
     Noz\to_array,
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         if (func_num_args()) {
98 98
             $count = $this->count();
99 99
             if (Str::contains($offset, static::SLICE_DELIM)) {
100
-                list($start, $length) = get_range_start_end($offset ,$count);
100
+                list($start, $length) = get_range_start_end($offset, $count);
101 101
                 return new static(array_slice($this->getData(), $start, $length));
102 102
             }
103 103
             if (is_numeric($offset)) {
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
     public function isEmpty(callable $funk = null)
403 403
     {
404 404
         if (!is_null($funk)) {
405
-            return $this->fold(function ($carry, $val) use ($funk) {
405
+            return $this->fold(function($carry, $val) use ($funk) {
406 406
                 return $carry && $funk($val);
407 407
             }, true);
408 408
         }
Please login to merge, or discard this patch.
src/functions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -183,6 +183,9 @@
 block discarded – undo
183 183
     return [$data];
184 184
 }
185 185
 
186
+/**
187
+ * @param integer $count
188
+ */
186 189
 function get_range_start_end($range, $count)
187 190
 {
188 191
     if (Str::contains($range, Sequence::SLICE_DELIM)) {
Please login to merge, or discard this patch.