Skip to content

Commit

Permalink
Fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jun 24, 2017
1 parent 598e74a commit cfc1e24
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/Collection/CollectionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -752,12 +752,12 @@ public function transpose()
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();
Expand Down
1 change: 0 additions & 1 deletion src/Collection/Iterator/ReplaceIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public function current()
return $callback(parent::current(), $this->key(), $this->_innerIterator);
}


/**
* {@inheritDoc}
*
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/Collection/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public function testEach()
public function filterProvider()
{
$items = [1, 2, 0, 3, false, 4, null, 5, ''];

return [
'array' => [$items],
'iterator' => [$this->yieldItems($items)]
Expand Down Expand Up @@ -2225,7 +2226,7 @@ public function testTransposeUnEvenLengthShouldThrowException()
* @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;
Expand Down

0 comments on commit cfc1e24

Please sign in to comment.