@@ -76,8 +76,6 @@ discard block |
||
76 | 76 | * |
77 | 77 | * The callback must return a boolean |
78 | 78 | * |
79 | - * @param mixed $query OPTIONAL the provided query |
|
80 | - * @param callable $callback the callback function |
|
81 | 79 | * @return int|null the index or null if it hasn't been found |
82 | 80 | */ |
83 | 81 | public function findIndex() { |
@@ -105,8 +103,6 @@ discard block |
||
105 | 103 | * |
106 | 104 | * The callback must return a boolean |
107 | 105 | * |
108 | - * @param mixed $query OPTIONAL the provided query |
|
109 | - * @param callable $callback the callback function |
|
110 | 106 | * @return int|null the index or null if it hasn't been found |
111 | 107 | */ |
112 | 108 | public function findLastIndex() { |
@@ -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() { |
@@ -199,7 +199,7 @@ |
||
199 | 199 | if (is_callable($cmp)) { |
200 | 200 | $usort($collection, $cmp); |
201 | 201 | } else if ($cmp instanceof Comparator) { |
202 | - $usort($collection, function($a, $b) use ($cmp) { |
|
202 | + $usort($collection, function ($a, $b) use ($cmp) { |
|
203 | 203 | return $cmp->compare($a, $b); |
204 | 204 | }); |
205 | 205 | } else { |
@@ -61,8 +61,6 @@ discard block |
||
61 | 61 | * |
62 | 62 | * The callback must return a boolean |
63 | 63 | * |
64 | - * @param mixed $query (optional) |
|
65 | - * @param callable $callback |
|
66 | 64 | * @return boolean |
67 | 65 | */ |
68 | 66 | public function search() { |
@@ -92,8 +90,6 @@ discard block |
||
92 | 90 | * |
93 | 91 | * The callback must return a boolean |
94 | 92 | * |
95 | - * @param mixed $query OPTIONAL the provided query |
|
96 | - * @param callable $callback the callback function |
|
97 | 93 | * @return mixed|null the found element or null if it hasn't been found |
98 | 94 | */ |
99 | 95 | public function find() { |
@@ -124,8 +120,6 @@ discard block |
||
124 | 120 | * |
125 | 121 | * The callback must return a boolean |
126 | 122 | * |
127 | - * @param mixed $query OPTIONAL the provided query |
|
128 | - * @param callable $callback the callback function |
|
129 | 123 | * @return mixed|null the found element or null if it hasn't been found |
130 | 124 | */ |
131 | 125 | public function findLast() { |
@@ -157,9 +151,7 @@ discard block |
||
157 | 151 | * |
158 | 152 | * The callback must return a boolean |
159 | 153 | * |
160 | - * @param mixed $query OPTIONAL the provided query |
|
161 | - * @param callable $callback the callback function |
|
162 | - * @return mixed|null the found element or null if it hasn't been found |
|
154 | + * @return AbstractCollection the found element or null if it hasn't been found |
|
163 | 155 | */ |
164 | 156 | public function findAll() { |
165 | 157 | if (func_num_args() == 1) { |