Jose Lorenzo Rodriguez 8 years ago
parent
commit
cfc1e24ec6

+ 6 - 6
src/Collection/CollectionTrait.php

@@ -752,12 +752,12 @@ trait CollectionTrait
         return new Collection($result);
     }
 
-     /**
-      * Unwraps this iterator and returns the simplest
-      * traversable that can be used for getting the data out
-      *
-      * @return \Traversable|array
-      */
+    /**
+     * Unwraps this iterator and returns the simplest
+     * traversable that can be used for getting the data out
+     *
+     * @return \Traversable|array
+     */
     protected function optimizeUnwrap()
     {
         $iterator = $this->unwrap();

+ 0 - 1
src/Collection/Iterator/ReplaceIterator.php

@@ -70,7 +70,6 @@ class ReplaceIterator extends Collection
         return $callback(parent::current(), $this->key(), $this->_innerIterator);
     }
 
-
     /**
      * {@inheritDoc}
      *

+ 2 - 1
tests/TestCase/Collection/CollectionTest.php

@@ -98,6 +98,7 @@ class CollectionTest extends TestCase
     public function filterProvider()
     {
         $items = [1, 2, 0, 3, false, 4, null, 5, ''];
+
         return [
             'array' => [$items],
             'iterator' => [$this->yieldItems($items)]
@@ -2225,7 +2226,7 @@ class CollectionTest extends TestCase
      * @param array $itmes the elements to be yielded
      * @return void
      */
-    function yieldItems(array $items)
+    protected function yieldItems(array $items)
     {
         foreach ($items as $k => $v) {
             yield $k => $v;