Completed
Push — master ( f4acaf...6e85d2 )
by Thomas
02:25
created
src/AbstractCollection.php 2 patches
Doc Comments   +1 added lines, -9 removed lines patch added patch discarded remove patch
@@ -66,8 +66,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
src/CollectionUtils.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.
src/Map.php 1 patch
Doc Comments   -4 removed lines patch added patch discarded remove patch
@@ -166,8 +166,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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() {
Please login to merge, or discard this patch.
src/AbstractList.php 1 patch
Doc Comments   -4 removed lines patch added patch discarded remove patch
@@ -166,8 +166,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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() {
Please login to merge, or discard this patch.