Skip to content

Commit 39fdafb

Browse files
committed
Clarify doc blocks.
1 parent 0368487 commit 39fdafb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Collection/CollectionInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -812,13 +812,13 @@ public function listNested($dir = 'desc', $nestingKey = 'children');
812812
public function stopWhen($condition);
813813

814814
/**
815-
* Creates a new collection where the items that it will contain are the
815+
* Creates a new collection where the items are the
816816
* concatenation of the lists of items generated by the transformer function
817-
* after passing each of the items form the original collection.
817+
* applied to each item in the original collection.
818818
*
819819
* The transformer function will receive the value and the key for each of the
820820
* items in the collection, in that order, and it must return an array or a
821-
* Traversable object so that it can be concatenated to the final result.
821+
* Traversable object that can be concatenated to the final result.
822822
*
823823
* If no transformer function is passed, an "identity" function will be used.
824824
* This is useful when each of the elements in the source collection are

src/Collection/Iterator/UnfoldIterator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
use RecursiveIterator;
1919

2020
/**
21-
* An iterator that can be used to generate nested iterators out of each of
22-
* applying an function to each of the elements in this iterator.
21+
* An iterator that can be used to generate nested iterators out of a collection
22+
* of items by applying an function to each of the elements in this iterator.
2323
*
2424
* @internal
2525
* @see Collection::unfold()

0 commit comments

Comments
 (0)