@@ -9,10 +9,8 @@ |
||
9 | 9 | /** |
10 | 10 | * Get the next item from the collection. |
11 | 11 | * |
12 | - * @param mixed $currentItem |
|
13 | - * @param mixed $fallback |
|
14 | 12 | * |
15 | - * @return mixed |
|
13 | + * @return \Closure |
|
16 | 14 | */ |
17 | 15 | public function after() |
18 | 16 | { |
@@ -9,9 +9,8 @@ |
||
9 | 9 | /** |
10 | 10 | * Get a single item from the collection by index. |
11 | 11 | * |
12 | - * @param mixed $index |
|
13 | 12 | * |
14 | - * @return mixed |
|
13 | + * @return \Closure |
|
15 | 14 | */ |
16 | 15 | public function at() |
17 | 16 | { |
@@ -9,10 +9,8 @@ |
||
9 | 9 | /** |
10 | 10 | * Get the previous item from the collection. |
11 | 11 | * |
12 | - * @param mixed $currentItem |
|
13 | - * @param mixed $fallback |
|
14 | 12 | * |
15 | - * @return mixed |
|
13 | + * @return \Closure |
|
16 | 14 | */ |
17 | 15 | public function before() |
18 | 16 | { |
@@ -11,10 +11,8 @@ |
||
11 | 11 | /** |
12 | 12 | * Separate a collection into chunks as long as the given callback returns true. |
13 | 13 | * |
14 | - * @param callable $callback |
|
15 | - * @param bool $preserveKeys |
|
16 | 14 | * |
17 | - * @return \Illuminate\Support\Collection |
|
15 | + * @return \Closure |
|
18 | 16 | */ |
19 | 17 | public function chunkBy() |
20 | 18 | { |
@@ -9,10 +9,8 @@ |
||
9 | 9 | /** |
10 | 10 | * Get a new collection from the collection by key. |
11 | 11 | * |
12 | - * @param mixed $key |
|
13 | - * @param mixed $default |
|
14 | 12 | * |
15 | - * @return static |
|
13 | + * @return \Closure |
|
16 | 14 | */ |
17 | 15 | public function collect() |
18 | 16 | { |
@@ -9,10 +9,8 @@ |
||
9 | 9 | /** |
10 | 10 | * Get the consecutive values in the collection defined by the given chunk size. |
11 | 11 | * |
12 | - * @param int $chunkSize |
|
13 | - * @param bool $preserveKeys |
|
14 | 12 | * |
15 | - * @return \Illuminate\Support\Collection |
|
13 | + * @return \Closure |
|
16 | 14 | */ |
17 | 15 | public function eachCons() |
18 | 16 | { |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * - If a value doesn't exist, it returns null instead of omitting it |
12 | 12 | * - It returns a collection without keys, so `list()` can be used. |
13 | 13 | * |
14 | - * @return \Illuminate\Support\Collection |
|
14 | + * @return \Closure |
|
15 | 15 | */ |
16 | 16 | public function extract() |
17 | 17 | { |
@@ -9,9 +9,8 @@ |
||
9 | 9 | /** |
10 | 10 | * Map a collection, then filter the results. |
11 | 11 | * |
12 | - * @param callable $callback |
|
13 | 12 | * |
14 | - * @return \Illuminate\Support\Collection |
|
13 | + * @return \Closure |
|
15 | 14 | */ |
16 | 15 | public function filterMap() |
17 | 16 | { |
@@ -10,7 +10,7 @@ |
||
10 | 10 | /** |
11 | 11 | * Get the first item. Throws CollectionItemNotFound if the item was not found. |
12 | 12 | * |
13 | - * @return mixed |
|
13 | + * @return \Closure |
|
14 | 14 | */ |
15 | 15 | public function firstOrFail() |
16 | 16 | { |