Completed
Pull Request — master (#156)
by Lucas
03:54 queued 01:43
created
src/Macros/ParallelMap.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,8 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Macros/Transpose.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Macros/After.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,10 +9,8 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Macros/At.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,8 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Macros/Before.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,10 +9,8 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Macros/ChunkBy.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,10 +11,8 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Macros/Collect.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,10 +9,8 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Macros/EachCons.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,10 +9,8 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Macros/Extract.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.