Browse Source

Fixed typos and other problems in doc blocks

Jose Lorenzo Rodriguez 12 years ago
parent
commit
56ff48db83

+ 2 - 2
src/Collection/CollectionTrait.php

@@ -629,9 +629,9 @@ trait CollectionTrait {
 	}
 
 /**
- * Returrns a new collection where the values extracted based on a value path
+ * Returns a new collection where the values extracted based on a value path
  * and then indexed by a key path. Optionally this method can produce parent
- * groups absed on a group property path.
+ * groups based on a group property path.
  *
  * ### Examples:
  *

+ 1 - 1
src/Model/Behavior/CounterCacheBehavior.php

@@ -84,7 +84,7 @@ class CounterCacheBehavior extends Behavior {
  * Keeping a reference to the table in order to,
  * be able to retrieve associations and fetch records for counting.
  *
- * @var array
+ * @var \Cake\ORM\Table
  */
 	protected $_table;
 

+ 4 - 4
src/ORM/Query.php

@@ -800,7 +800,7 @@ class Query extends DatabaseQuery {
  * are tried to be fetched from the database.
  *
  * Formatting callbacks will get as first parameter a `ResultSetDecorator` that
- * can be traversed and modified at will. AS second parameter, the formatting
+ * can be traversed and modified at will. As the second parameter, the formatting
  * callback will receive this query instance.
  *
  * Callbacks are required to return an iterator object, which will be used as
@@ -810,8 +810,8 @@ class Query extends DatabaseQuery {
  * If the first argument is set to null, it will return the list of previously
  * registered map reduce routines.
  *
- * If the second argument is set to true, it will erase previous map reducers
- * and replace it with the arguments passed.
+ * If the second argument is set to true, it will erase previous formatters
+ * and replace them with the passed first argument.
  *
  * ### Example:
  *
@@ -822,7 +822,7 @@ class Query extends DatabaseQuery {
  * });
  *
  * //Add a new column to the ResultSet
- * $query->select(['id', 'name'])->formatResults(function($results, $query) {
+ * $query->select(['name', 'bith_date'])->formatResults(function($results, $query) {
  *	return $results->map(function($row) {
  *		$row['age'] = $row['birth_date']->diff(new DateTime)->y;
  *		return $row;