@@ -9,12 +9,8 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Splits a collection into sections grouped by a given key. |
| 11 | 11 | * |
| 12 | - * @param mixed $key |
|
| 13 | - * @param bool $preserveKeys |
|
| 14 | - * @param mixed $sectionKey |
|
| 15 | - * @param mixed $itemsKey |
|
| 16 | 12 | * |
| 17 | - * @return \Illuminate\Support\Collection |
|
| 13 | + * @return \Closure |
|
| 18 | 14 | */ |
| 19 | 15 | public function sectionBy() |
| 20 | 16 | { |
@@ -9,9 +9,8 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Get the tail of a collection, everything except the first item. |
| 11 | 11 | * |
| 12 | - * @param bool $preserveKeys |
|
| 13 | 12 | * |
| 14 | - * @return \Illuminate\Support\Collection |
|
| 13 | + * @return \Closure |
|
| 15 | 14 | */ |
| 16 | 15 | public function tail() |
| 17 | 16 | { |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Transform a collection into an an array with pairs. |
| 11 | 11 | * |
| 12 | - * @return \Illuminate\Support\Collection |
|
| 12 | + * @return \Closure |
|
| 13 | 13 | */ |
| 14 | 14 | public function toPairs() |
| 15 | 15 | { |
@@ -8,9 +8,8 @@ |
||
| 8 | 8 | * Returns true if $callback returns true for every item. If $callback |
| 9 | 9 | * is a string or an array, regard it as a validation rule. |
| 10 | 10 | * |
| 11 | - * @param string|callable $callback |
|
| 12 | 11 | * |
| 13 | - * @return bool |
|
| 12 | + * @return \Closure |
|
| 14 | 13 | */ |
| 15 | 14 | public function validate() |
| 16 | 15 | { |
@@ -9,12 +9,8 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Paginate the given collection. |
| 11 | 11 | * |
| 12 | - * @param int $perPage |
|
| 13 | - * @param int $total |
|
| 14 | - * @param int $page |
|
| 15 | - * @param string $pageName |
|
| 16 | 12 | * |
| 17 | - * @return \Illuminate\Pagination\LengthAwarePaginator |
|
| 13 | + * @return \Closure |
|
| 18 | 14 | */ |
| 19 | 15 | public function paginate() |
| 20 | 16 | { |
@@ -9,9 +9,8 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Rotate the items in the collection with given offset. |
| 11 | 11 | * |
| 12 | - * @param int $offset |
|
| 13 | 12 | * |
| 14 | - * @return \Illuminate\Support\Collection |
|
| 13 | + * @return \Closure |
|
| 15 | 14 | */ |
| 16 | 15 | public function rotate() |
| 17 | 16 | { |
@@ -9,11 +9,8 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Paginate the collection into a simple paginator. |
| 11 | 11 | * |
| 12 | - * @param int $perPage |
|
| 13 | - * @param int $page |
|
| 14 | - * @param string $pageName |
|
| 15 | 12 | * |
| 16 | - * @return \Illuminate\Contracts\Pagination\Paginator |
|
| 13 | + * @return \Closure |
|
| 17 | 14 | */ |
| 18 | 15 | public function simplePaginate() |
| 19 | 16 | { |
@@ -9,10 +9,8 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Slice a collection before a given callback is met into separate chunks. |
| 11 | 11 | * |
| 12 | - * @param callable $callback |
|
| 13 | - * @param bool $preserveKeys |
|
| 14 | 12 | * |
| 15 | - * @return \Illuminate\Support\Collection |
|
| 13 | + * @return \Closure |
|
| 16 | 14 | */ |
| 17 | 15 | public function sliceBefore() |
| 18 | 16 | { |
@@ -9,9 +9,8 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Create a new collection with the specified amount of items. |
| 11 | 11 | * |
| 12 | - * @param int $size |
|
| 13 | 12 | * |
| 14 | - * @return \Illuminate\Support\Collection |
|
| 13 | + * @return \Closure |
|
| 15 | 14 | */ |
| 16 | 15 | public function withSize() |
| 17 | 16 | { |