Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix docblocks in CollectionTrait

  • Loading branch information...
commit 2ccd417c7d5da0b1d9d040997f3671335b85e4da 1 parent 8f30b3a
@bcrowe bcrowe authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/Collection/CollectionTrait.php
View
16 src/Collection/CollectionTrait.php
@@ -255,7 +255,7 @@ public function reduce(callable $c, $zero) {
* ['Mark', 'Renan']
* }}}
*
- * @param string $path a dot separated string symbolizing the path to follow
+ * @param string $matcher a dot separated string symbolizing the path to follow
* inside the hierarchy of each value so that the column can be extracted.
* @return \Cake\Collection\Iterator\ExtractIterator
*/
@@ -281,7 +281,7 @@ public function extract($matcher) {
* echo $max->name;
* }}}
*
- * @param callable|string the callback or column name to use for sorting
+ * @param callable|string $callback the callback or column name to use for sorting
* @param integer $type the type of comparison to perform, either SORT_STRING
* SORT_NUMERIC or SORT_NATURAL
* @see \Cake\Collection\Collection::sortBy()
@@ -311,7 +311,7 @@ public function max($callback, $type = SORT_NUMERIC) {
* }}}
*
*
- * @param callable|string the callback or column name to use for sorting
+ * @param callable|string $callback the callback or column name to use for sorting
* @param integer $type the type of comparison to perform, either SORT_STRING
* SORT_NUMERIC or SORT_NATURAL
* @see \Cake\Collection\Collection::sortBy()
@@ -352,7 +352,7 @@ public function min($callback, $type = SORT_NUMERIC) {
* }
* }}}
*
- * @param callable|string the callback or column name to use for sorting
+ * @param callable|string $callback the callback or column name to use for sorting
* @param integer $dir either SORT_DESC or SORT_ASC
* @param integer $type the type of comparison to perform, either SORT_STRING
* SORT_NUMERIC or SORT_NATURAL
@@ -399,7 +399,7 @@ public function sortBy($callback, $dir = SORT_DESC, $type = SORT_NUMERIC) {
* ];
* }}}
*
- * @param callable|string the callback or column name to use for grouping
+ * @param callable|string $callback the callback or column name to use for grouping
* or a function returning the grouping key out of the provided element
* @return \Cake\Collection\Collection
*/
@@ -445,7 +445,7 @@ public function groupBy($callback) {
* ];
* }}}
*
- * @param callable|string the callback or column name to use for indexing
+ * @param callable|string $callback the callback or column name to use for indexing
* or a function returning the indexing key out of the provided element
* @return \Cake\Collection\Collection
*/
@@ -490,7 +490,7 @@ public function indexBy($callback) {
* ];
* }}}
*
- * @param callable|string the callback or column name to use for indexing
+ * @param callable|string $callback the callback or column name to use for indexing
* or a function returning the indexing key out of the provided element
* @return \Cake\Collection\Collection
*/
@@ -618,7 +618,7 @@ public function first() {
* Returns a new collection as the result of concatenating the list of elements
* in this collection with the passed list of elements
*
- * @param array|\Traversable
+ * @param array|\Traversable $items
* @return \Cake\Collection\Collection
*/
public function append($items) {
Please sign in to comment.
Something went wrong with that request. Please try again.