Completed
Pull Request — master (#4)
by Cristiano
04:49
created
src/AbstractList.php 1 patch
Doc Comments   -4 removed lines patch added patch discarded remove patch
@@ -76,8 +76,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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() {
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/AbstractCollection.php 2 patches
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.
Doc Comments   +1 added lines, -9 removed lines patch added patch discarded remove patch
@@ -61,8 +61,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.