@@ -66,8 +66,6 @@ discard block |
||
| 66 | 66 | * |
| 67 | 67 | * The callback must return a boolean |
| 68 | 68 | * |
| 69 | - * @param mixed $query (optional) |
|
| 70 | - * @param callable $callback |
|
| 71 | 69 | * @return boolean |
| 72 | 70 | */ |
| 73 | 71 | public function search() { |
@@ -97,8 +95,6 @@ discard block |
||
| 97 | 95 | * |
| 98 | 96 | * The callback must return a boolean |
| 99 | 97 | * |
| 100 | - * @param mixed $query OPTIONAL the provided query |
|
| 101 | - * @param callable $callback the callback function |
|
| 102 | 98 | * @return mixed|null the found element or null if it hasn't been found |
| 103 | 99 | */ |
| 104 | 100 | public function find() { |
@@ -129,8 +125,6 @@ discard block |
||
| 129 | 125 | * |
| 130 | 126 | * The callback must return a boolean |
| 131 | 127 | * |
| 132 | - * @param mixed $query OPTIONAL the provided query |
|
| 133 | - * @param callable $callback the callback function |
|
| 134 | 128 | * @return mixed|null the found element or null if it hasn't been found |
| 135 | 129 | */ |
| 136 | 130 | public function findLast() { |
@@ -162,9 +156,7 @@ discard block |
||
| 162 | 156 | * |
| 163 | 157 | * The callback must return a boolean |
| 164 | 158 | * |
| 165 | - * @param mixed $query OPTIONAL the provided query |
|
| 166 | - * @param callable $callback the callback function |
|
| 167 | - * @return mixed|null the found element or null if it hasn't been found |
|
| 159 | + * @return AbstractCollection the found element or null if it hasn't been found |
|
| 168 | 160 | */ |
| 169 | 161 | public function findAll() { |
| 170 | 162 | if (func_num_args() == 1) { |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | * Returns a proper collection for the given array (also transforms nested collections) |
| 17 | 17 | * (experimental API) |
| 18 | 18 | * |
| 19 | - * @param array|Iterator $collection |
|
| 19 | + * @param Iterator $collection |
|
| 20 | 20 | * @return Map|ArrayList the collection |
| 21 | 21 | * @throws InvalidArgumentException |
| 22 | 22 | */ |
@@ -166,8 +166,6 @@ discard block |
||
| 166 | 166 | * |
| 167 | 167 | * The callback must return a boolean |
| 168 | 168 | * |
| 169 | - * @param mixed $query OPTIONAL the provided query |
|
| 170 | - * @param callable $callback the callback function |
|
| 171 | 169 | * @return mixed|null the key or null if it hasn't been found |
| 172 | 170 | */ |
| 173 | 171 | public function findKey() { |
@@ -195,8 +193,6 @@ discard block |
||
| 195 | 193 | * |
| 196 | 194 | * The callback must return a boolean |
| 197 | 195 | * |
| 198 | - * @param mixed $query OPTIONAL the provided query |
|
| 199 | - * @param callable $callback the callback function |
|
| 200 | 196 | * @return mixed|null the key or null if it hasn't been found |
| 201 | 197 | */ |
| 202 | 198 | public function findLastKey() { |
@@ -166,8 +166,6 @@ discard block |
||
| 166 | 166 | * |
| 167 | 167 | * The callback must return a boolean |
| 168 | 168 | * |
| 169 | - * @param mixed $query OPTIONAL the provided query |
|
| 170 | - * @param callable $callback the callback function |
|
| 171 | 169 | * @return mixed|null the key or null if it hasn't been found |
| 172 | 170 | */ |
| 173 | 171 | public function findKey() { |
@@ -195,8 +193,6 @@ discard block |
||
| 195 | 193 | * |
| 196 | 194 | * The callback must return a boolean |
| 197 | 195 | * |
| 198 | - * @param mixed $query OPTIONAL the provided query |
|
| 199 | - * @param callable $callback the callback function |
|
| 200 | 196 | * @return mixed|null the key or null if it hasn't been found |
| 201 | 197 | */ |
| 202 | 198 | public function findLastKey() { |