Completed
Pull Request — master (#156)
by Lucas
02:51
created
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.
src/Macros/FilterMap.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
      * 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
     {
Please login to merge, or discard this patch.
src/Macros/FirstOrFail.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.