Completed
Pull Request — master (#17)
by
unknown
02:31
created
src/Traits/VectorLikeTrait.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,8 +102,7 @@
 block discarded – undo
102 102
             throw new \InvalidArgumentException('Parameter len must be null or an integer');
103 103
         }
104 104
 
105
-        $removed = is_null($length) ? array_splice($this->container, $offset) :
106
-            array_splice($this->container, $offset, $len);
105
+        $removed = is_null($length) ? array_splice($this->container, $offset) : array_splice($this->container, $offset, $len);
107 106
 
108 107
 //        if (count($removed) > 0) {
109 108
 //            $this->hacklib_expireAllIterators();
Please login to merge, or discard this patch.
src/Traits/CommonContainerMethodsTrait.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
 
373 373
     /**
374 374
      * {@inheritDoc}
375
-     * @return $this
375
+     * @return Map
376 376
      */
377 377
     public function groupBy($callback)
378 378
     {
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 
394 394
     /**
395 395
      * {@inheritDoc}
396
-     * @return $this
396
+     * @return Map
397 397
      */
398 398
     public function indexBy($callback)
399 399
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -348,8 +348,8 @@
 block discarded – undo
348 348
     {
349 349
         /** @var VectorInterface $results */
350 350
         $results = new static();
351
-        $this->each(function (Enumerable $subArray) use ($results) {
352
-            $subArray->each(function ($item) use ($results) {
351
+        $this->each(function(Enumerable $subArray) use ($results) {
352
+            $subArray->each(function($item) use ($results) {
353 353
                 $results->add($item);
354 354
             });
355 355
         });
Please login to merge, or discard this patch.
src/Iterator/LazyIterableTrait.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
 
373 373
     /**
374 374
      * {@inheritDoc}
375
-     * @return $this
375
+     * @return Map
376 376
      */
377 377
     public function groupBy($callback)
378 378
     {
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 
394 394
     /**
395 395
      * {@inheritDoc}
396
-     * @return $this
396
+     * @return Map
397 397
      */
398 398
     public function indexBy($callback)
399 399
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
     {
219 219
         /** @var VectorInterface $results */
220 220
         $results = new static();
221
-        $this->each(function ($subArray) use ($results) {
221
+        $this->each(function($subArray) use ($results) {
222 222
             foreach ($subArray as $item) {
223 223
                 $results->add($item);
224 224
             }
Please login to merge, or discard this patch.
src/Iterator/LazyKeyedIterableTrait.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
 
373 373
     /**
374 374
      * {@inheritDoc}
375
-     * @return $this
375
+     * @return Map
376 376
      */
377 377
     public function groupBy($callback)
378 378
     {
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 
394 394
     /**
395 395
      * {@inheritDoc}
396
-     * @return $this
396
+     * @return Map
397 397
      */
398 398
     public function indexBy($callback)
399 399
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
     {
219 219
         /** @var VectorInterface $results */
220 220
         $results = new static();
221
-        $this->each(function ($subArray) use ($results) {
221
+        $this->each(function($subArray) use ($results) {
222 222
             foreach ($subArray as $item) {
223 223
                 $results->add($item);
224 224
             }
Please login to merge, or discard this patch.