@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Amp\Parallel\Worker\Pool; |
| 6 | 6 | use function Amp\Promise\wait; |
| 7 | -use Illuminate\Support\Collection; |
|
| 8 | 7 | use Amp\Parallel\Worker\DefaultPool; |
| 8 | +use Illuminate\Support\Collection; |
|
| 9 | 9 | use function Amp\ParallelFunctions\parallelMap; |
| 10 | 10 | |
| 11 | 11 | class ParallelMap |
@@ -15,9 +15,8 @@ |
||
| 15 | 15 | * |
| 16 | 16 | * This function requires the installation of amphp/parallel-functions |
| 17 | 17 | * |
| 18 | - * @param callable $callback |
|
| 19 | 18 | * |
| 20 | - * @return \Illuminate\Support\Collection |
|
| 19 | + * @return \Closure |
|
| 21 | 20 | */ |
| 22 | 21 | public function parallelMap() |
| 23 | 22 | { |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace Spatie\CollectionMacros\Macros; |
| 4 | 4 | |
| 5 | 5 | use Countable; |
| 6 | -use LengthException; |
|
| 7 | 6 | use Illuminate\Support\Collection; |
| 7 | +use LengthException; |
|
| 8 | 8 | |
| 9 | 9 | class Transpose |
| 10 | 10 | { |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | /** |
| 12 | 12 | * Transpose an array. |
| 13 | 13 | * |
| 14 | - * @return \Illuminate\Support\Collection |
|
| 14 | + * @return \Closure |
|
| 15 | 15 | * |
| 16 | 16 | * @throws \LengthException |
| 17 | 17 | */ |
@@ -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 | { |