Index: trunk/extensions/MarkAsHelpful/includes/MarkAsHelpfulItem.php |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | /** |
51 | 51 | * Setter method |
52 | 52 | * @param $key string - the name of the property |
53 | | - * @param $value mixed - the valud of the property |
| 53 | + * @param $value mixed - the value of the property |
54 | 54 | */ |
55 | 55 | public function setProperty( $key, $value ) { |
56 | 56 | if ( array_key_exists( $key, $this->property ) ) { |
— | — | @@ -201,8 +201,8 @@ |
202 | 202 | } |
203 | 203 | |
204 | 204 | /** |
205 | | - * Unmark an item as helpful, we don't allow anonymous user to unarmk an item |
206 | | - * @param $currentUser Object - the current user who is browsing the site |
| 205 | + * Unmark an item as helpful, we don't allow anonymous user to unmark an item |
| 206 | + * @param $currentUser User - the current user who is browsing the site |
207 | 207 | */ |
208 | 208 | public function unmark( $currentUser ) { |
209 | 209 | |
— | — | @@ -263,7 +263,7 @@ |
264 | 264 | $conds['mah_user_id'] = 0; |
265 | 265 | } else { |
266 | 266 | $conds['mah_user_id'] = $user->getId(); |
267 | | - $conds['mah_user_ip'] = NULL; |
| 267 | + $conds['mah_user_ip'] = null; |
268 | 268 | } |
269 | 269 | } else { |
270 | 270 | // Invalid User object, we can't allow this user to mark an item |
— | — | @@ -310,7 +310,7 @@ |
311 | 311 | |
312 | 312 | $list = array(); |
313 | 313 | |
314 | | - foreach ( $res AS $val ) { |
| 314 | + foreach ( $res as $val ) { |
315 | 315 | $list[$val->user_id] = array( 'user_name' => $val->user_name, |
316 | 316 | 'user_id' => $val->user_id, |
317 | 317 | 'user_ip' => $val->mah_user_ip ); |