@@ -270,8 +270,7 @@ public function mapReduce(callable $mapper = null, callable $reducer = null, $ov
270
270
* to fetch the results from the database.
271
271
*
272
272
* Formatting callbacks will get a first parameter, a `ResultSetDecorator`, that
273
- * can be traversed and modified at will. As for the second parameter, the
274
- * formatting callback will receive this query instance.
273
+ * can be traversed and modified at will.
275
274
*
276
275
* Callbacks are required to return an iterator object, which will be used as
277
276
* the return value for this query's result. Formatter functions are applied
@@ -287,12 +286,12 @@ public function mapReduce(callable $mapper = null, callable $reducer = null, $ov
287
286
*
288
287
* ```
289
288
* // Return all results from the table indexed by id
290
- * $query->select(['id', 'name'])->formatResults(function ($results, $query ) {
289
+ * $query->select(['id', 'name'])->formatResults(function ($results) {
291
290
* return $results->indexBy('id');
292
291
* });
293
292
*
294
293
* // Add a new column to the ResultSet
295
- * $query->select(['name', 'birth_date'])->formatResults(function ($results, $query ) {
294
+ * $query->select(['name', 'birth_date'])->formatResults(function ($results) {
296
295
* return $results->map(function ($row) {
297
296
* $row['age'] = $row['birth_date']->diff(new DateTime)->y;
298
297
* return $row;
0 commit comments