Completed
Push — master ( 2dcfd0...73b3d9 )
by Ítalo
02:46 queued 10s
created
src/Traits/StrictIterableTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -229,8 +229,8 @@  discard block
 block discarded – undo
229 229
     {
230 230
         /** @var VectorInterface $results */
231 231
         $results = new static();
232
-        $this->each(function (Iterable $subArray) use ($results) {
233
-            $subArray->each(function ($item) use ($results) {
232
+        $this->each(function(Iterable $subArray) use ($results) {
233
+            $subArray->each(function($item) use ($results) {
234 234
                 $results->add($item);
235 235
             });
236 236
         });
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
         $merged = $array;
256 256
 
257 257
         foreach ($array1 as $key => $value) {
258
-            $isValid = function ($value) {
258
+            $isValid = function($value) {
259 259
                 return (is_array($value) || $value instanceof \Traversable);
260 260
             };
261 261
 
Please login to merge, or discard this patch.
src/Traits/StrictKeyedIterableTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -226,8 +226,8 @@  discard block
 block discarded – undo
226 226
     {
227 227
         /** @var MapInterface $results */
228 228
         $results = new static();
229
-        $this->each(function (Iterable $subArray) use ($results) {
230
-            $subArray->each(function ($item, $key) use ($results) {
229
+        $this->each(function(Iterable $subArray) use ($results) {
230
+            $subArray->each(function($item, $key) use ($results) {
231 231
                 $results->add($key, $item);
232 232
             });
233 233
         });
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
         $merged = $array;
241 241
 
242 242
         foreach ($array1 as $key => $value) {
243
-            $isValid = function ($value) {
243
+            $isValid = function($value) {
244 244
                 return (is_array($value) || $value instanceof \Traversable);
245 245
             };
246 246
 
Please login to merge, or discard this patch.
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
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -245,8 +245,8 @@
 block discarded – undo
245 245
     {
246 246
         /** @var VectorInterface $results */
247 247
         $results = new static();
248
-        $this->each(function (Iterable $subArray) use ($results) {
249
-            $subArray->each(function ($item) use ($results) {
248
+        $this->each(function(Iterable $subArray) use ($results) {
249
+            $subArray->each(function($item) use ($results) {
250 250
                 $results->add($item);
251 251
             });
252 252
         });
Please login to merge, or discard this patch.
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.