@@ -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 | { |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Transform a collection into an associative array form collection item. |
| 11 | 11 | * |
| 12 | - * @return \Illuminate\Support\Collection |
|
| 12 | + * @return \Closure |
|
| 13 | 13 | */ |
| 14 | 14 | public function fromPairs() |
| 15 | 15 | { |
@@ -9,9 +9,8 @@ discard block |
||
| 9 | 9 | /** |
| 10 | 10 | * Get the second item from the collection. |
| 11 | 11 | * |
| 12 | - * @param mixed $index |
|
| 13 | 12 | * |
| 14 | - * @return mixed |
|
| 13 | + * @return \Closure |
|
| 15 | 14 | */ |
| 16 | 15 | public function second() |
| 17 | 16 | { |
@@ -23,9 +22,8 @@ discard block |
||
| 23 | 22 | /** |
| 24 | 23 | * Get the third item from the collection. |
| 25 | 24 | * |
| 26 | - * @param mixed $index |
|
| 27 | 25 | * |
| 28 | - * @return mixed |
|
| 26 | + * @return \Closure |
|
| 29 | 27 | */ |
| 30 | 28 | public function third() |
| 31 | 29 | { |
@@ -37,9 +35,8 @@ discard block |
||
| 37 | 35 | /** |
| 38 | 36 | * Get the fourth item from the collection. |
| 39 | 37 | * |
| 40 | - * @param mixed $index |
|
| 41 | 38 | * |
| 42 | - * @return mixed |
|
| 39 | + * @return \Closure |
|
| 43 | 40 | */ |
| 44 | 41 | public function fourth() |
| 45 | 42 | { |
@@ -51,9 +48,8 @@ discard block |
||
| 51 | 48 | /** |
| 52 | 49 | * Get the fifth item from the collection. |
| 53 | 50 | * |
| 54 | - * @param mixed $index |
|
| 55 | 51 | * |
| 56 | - * @return mixed |
|
| 52 | + * @return \Closure |
|
| 57 | 53 | */ |
| 58 | 54 | public function fifth() |
| 59 | 55 | { |
@@ -65,9 +61,8 @@ discard block |
||
| 65 | 61 | /** |
| 66 | 62 | * Get the sixth item from the collection. |
| 67 | 63 | * |
| 68 | - * @param mixed $index |
|
| 69 | 64 | * |
| 70 | - * @return mixed |
|
| 65 | + * @return \Closure |
|
| 71 | 66 | */ |
| 72 | 67 | public function sixth() |
| 73 | 68 | { |
@@ -79,9 +74,8 @@ discard block |
||
| 79 | 74 | /** |
| 80 | 75 | * Get the seventh item from the collection. |
| 81 | 76 | * |
| 82 | - * @param mixed $index |
|
| 83 | 77 | * |
| 84 | - * @return mixed |
|
| 78 | + * @return \Closure |
|
| 85 | 79 | */ |
| 86 | 80 | public function seventh() |
| 87 | 81 | { |
@@ -93,9 +87,8 @@ discard block |
||
| 93 | 87 | /** |
| 94 | 88 | * Get the eighth item from the collection. |
| 95 | 89 | * |
| 96 | - * @param mixed $index |
|
| 97 | 90 | * |
| 98 | - * @return mixed |
|
| 91 | + * @return \Closure |
|
| 99 | 92 | */ |
| 100 | 93 | public function eighth() |
| 101 | 94 | { |
@@ -107,9 +100,8 @@ discard block |
||
| 107 | 100 | /** |
| 108 | 101 | * Get the ninth item from the collection. |
| 109 | 102 | * |
| 110 | - * @param mixed $index |
|
| 111 | 103 | * |
| 112 | - * @return mixed |
|
| 104 | + * @return \Closure |
|
| 113 | 105 | */ |
| 114 | 106 | public function ninth() |
| 115 | 107 | { |
@@ -121,9 +113,8 @@ discard block |
||
| 121 | 113 | /** |
| 122 | 114 | * Get the tenth item from the collection. |
| 123 | 115 | * |
| 124 | - * @param mixed $index |
|
| 125 | 116 | * |
| 126 | - * @return mixed |
|
| 117 | + * @return \Closure |
|
| 127 | 118 | */ |
| 128 | 119 | public function tenth() |
| 129 | 120 | { |
@@ -9,12 +9,8 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Group a collection by an Eloquent model. |
| 11 | 11 | * |
| 12 | - * @param string|callable $callback |
|
| 13 | - * @param bool $preserveKeys |
|
| 14 | - * @param mixed $modelKey |
|
| 15 | - * @param mixed $itemsKey |
|
| 16 | 12 | * |
| 17 | - * @return \Illuminate\Support\Collection |
|
| 13 | + * @return \Closure |
|
| 18 | 14 | */ |
| 19 | 15 | public function groupByModel() |
| 20 | 16 | { |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Get the first item from the collection. |
| 11 | 11 | * |
| 12 | - * @return mixed |
|
| 12 | + * @return \Closure |
|
| 13 | 13 | */ |
| 14 | 14 | public function head() |
| 15 | 15 | { |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | * |
| 12 | 12 | * @param callable callback |
| 13 | 13 | * |
| 14 | - * @return \Illuminate\Support\Collection |
|
| 14 | + * @return \Closure |
|
| 15 | 15 | */ |
| 16 | 16 | public function ifAny() |
| 17 | 17 | { |
@@ -9,9 +9,8 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Execute a callable if the collection is empty, then return the collection. |
| 11 | 11 | * |
| 12 | - * @param callable $callback |
|
| 13 | 12 | * |
| 14 | - * @return \Illuminate\Support\Collection |
|
| 13 | + * @return \Closure |
|
| 15 | 14 | */ |
| 16 | 15 | public function ifEmpty() |
| 17 | 16 | { |
@@ -13,10 +13,8 @@ |
||
| 13 | 13 | * |
| 14 | 14 | * @see \Illuminate\Support\Collection::contains |
| 15 | 15 | * |
| 16 | - * @param mixed $key |
|
| 17 | - * @param mixed $value |
|
| 18 | 16 | * |
| 19 | - * @return bool |
|
| 17 | + * @return \Closure |
|
| 20 | 18 | */ |
| 21 | 19 | public function none() |
| 22 | 20 | { |
@@ -7,10 +7,8 @@ |
||
| 7 | 7 | /** |
| 8 | 8 | * Get the array of values of a given key. |
| 9 | 9 | * |
| 10 | - * @param string|array $value |
|
| 11 | - * @param string|null $key |
|
| 12 | 10 | * |
| 13 | - * @return array |
|
| 11 | + * @return \Closure |
|
| 14 | 12 | */ |
| 15 | 13 | public function pluckToArray() |
| 16 | 14 | { |