Test Failed
Push — features/47-laravelmethods ( eb62da...02a3bd )
by Luke
02:43
created
src/Collection/LList.php 2 patches
Unused Use Statements   +5 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,19 +9,16 @@
 block discarded – undo
9 9
  */
10 10
 namespace Noz\Collection;
11 11
 
12
-use InvalidArgumentException;
13
-
14 12
 use Countable;
15
-use Traversable;
16
-use SplDoublyLinkedList;
17
-
18
-use Noz\Contracts\Structure\Listable;
19
-use Noz\Contracts\Immutable;
13
+use InvalidArgumentException;
20 14
 use Noz\Contracts\Arrayable;
15
+use Noz\Contracts\Immutable;
21 16
 use Noz\Contracts\Invokable;
22
-
17
+use Noz\Contracts\Structure\Listable;
23 18
 use Noz\Traits\IsArrayable;
24 19
 use Noz\Traits\IsImmutable;
20
+use SplDoublyLinkedList;
21
+use Traversable;
25 22
 
26 23
 use function
27 24
     Noz\to_array,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
     public function __invoke()
93 93
     {
94 94
         $list = new LList([
95
-            'abc','def','ghi','jkl','mno'
95
+            'abc', 'def', 'ghi', 'jkl', 'mno'
96 96
         ]);
97 97
         $list(); // equivalent to pop()
98 98
         $list($val); // equivalent to push()
Please login to merge, or discard this patch.
src/Collection/Stack.php 1 patch
Unused Use Statements   +2 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,17 +9,11 @@
 block discarded – undo
9 9
  */
10 10
 namespace Noz\Collection;
11 11
 
12
-use BadMethodCallException;
13
-
14 12
 use Countable;
15
-use Traversable;
16
-use SplFixedArray;
17
-
18
-use Noz\Contracts\Structure\Listable;
19
-use Noz\Contracts\Immutable;
20 13
 use Noz\Contracts\Arrayable;
14
+use Noz\Contracts\Immutable;
21 15
 use Noz\Contracts\Invokable;
22
-
16
+use Noz\Contracts\Structure\Listable;
23 17
 use Noz\Traits\IsImmutable;
24 18
 
25 19
 use function Noz\to_array;
Please login to merge, or discard this patch.
src/Collection/Sequence.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             $count = $this->count();
104 104
             if (count($args)) {
105 105
                 // if there are more args...
106
-                $length =  array_shift($args);
106
+                $length = array_shift($args);
107 107
             }
108 108
             if (Str::contains($offset, static::SLICE_DELIM)) {
109 109
                 list($start, $length) = get_range_start_end($offset, $count);
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
     public function isEmpty(callable $funk = null)
414 414
     {
415 415
         if (!is_null($funk)) {
416
-            return $this->fold(function ($carry, $val) use ($funk) {
416
+            return $this->fold(function($carry, $val) use ($funk) {
417 417
                 return $carry && $funk($val);
418 418
             }, true);
419 419
         }
Please login to merge, or discard this patch.