@@ -229,6 +229,9 @@ discard block |
||
229 | 229 | return implode("\n", $po); |
230 | 230 | } |
231 | 231 | |
232 | + /** |
|
233 | + * @return string |
|
234 | + */ |
|
232 | 235 | public static function match_begin_and_end_newlines( $translation, $original ) { |
233 | 236 | if ( '' === $translation ) { |
234 | 237 | return $translation; |
@@ -418,7 +421,7 @@ discard block |
||
418 | 421 | * |
419 | 422 | * @param resource $f |
420 | 423 | * @param string $action |
421 | - * @return boolean |
|
424 | + * @return boolean|string |
|
422 | 425 | */ |
423 | 426 | function read_line($f, $action = 'read') { |
424 | 427 | static $last_line = ''; |
@@ -458,7 +461,7 @@ discard block |
||
458 | 461 | |
459 | 462 | /** |
460 | 463 | * @param string $s |
461 | - * @return sring |
|
464 | + * @return string |
|
462 | 465 | */ |
463 | 466 | public static function trim_quotes($s) { |
464 | 467 | if ( substr($s, 0, 1) == '"') $s = substr($s, 1); |
@@ -18,6 +18,7 @@ discard block |
||
18 | 18 | * Add entry to the PO structure |
19 | 19 | * |
20 | 20 | * @param array|Translation_Entry &$entry |
21 | + * @param Translation_Entry $entry |
|
21 | 22 | * @return bool true on success, false if the entry doesn't have a key |
22 | 23 | */ |
23 | 24 | function add_entry($entry) { |
@@ -72,6 +73,7 @@ discard block |
||
72 | 73 | |
73 | 74 | /** |
74 | 75 | * @param string $header |
76 | + * @return string |
|
75 | 77 | */ |
76 | 78 | function get_header($header) { |
77 | 79 | return isset($this->headers[$header])? $this->headers[$header] : false; |
@@ -326,7 +328,7 @@ discard block |
||
326 | 328 | /** |
327 | 329 | * |
328 | 330 | * @param int $count |
329 | - * @return bool |
|
331 | + * @return integer |
|
330 | 332 | */ |
331 | 333 | function select_plural_form($count) { |
332 | 334 | return 1 == $count? 0 : 1; |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | * @param array $users Array of user IDs. |
387 | 387 | * @param string|array $post_type Optional. Single post type or array of post types to check. Defaults to 'post'. |
388 | 388 | * @param bool $public_only Optional. Only return counts for public posts. Defaults to false. |
389 | - * @return array Amount of posts each user has written. |
|
389 | + * @return WP_User Amount of posts each user has written. |
|
390 | 390 | */ |
391 | 391 | function count_many_users_posts( $users, $post_type = 'post', $public_only = false ) { |
392 | 392 | global $wpdb; |
@@ -758,7 +758,7 @@ discard block |
||
758 | 758 | * |
759 | 759 | * @param int $user_id User ID. |
760 | 760 | * @param string $meta_key Metadata name. |
761 | - * @param mixed $meta_value Metadata value. |
|
761 | + * @param string $meta_value Metadata value. |
|
762 | 762 | * @param bool $unique Optional, default is false. Whether the same key should not be added. |
763 | 763 | * @return int|false Meta ID on success, false on failure. |
764 | 764 | */ |
@@ -1254,7 +1254,7 @@ discard block |
||
1254 | 1254 | * @since 3.0.0 |
1255 | 1255 | * |
1256 | 1256 | * @param object|WP_User $user User object to be cached |
1257 | - * @return bool|null Returns false on failure. |
|
1257 | + * @return false|null Returns false on failure. |
|
1258 | 1258 | */ |
1259 | 1259 | function update_user_caches( $user ) { |
1260 | 1260 | if ( $user instanceof WP_User ) { |
@@ -1277,7 +1277,7 @@ discard block |
||
1277 | 1277 | * @since 3.0.0 |
1278 | 1278 | * @since 4.4.0 'clean_user_cache' action was added. |
1279 | 1279 | * |
1280 | - * @param WP_User|int $user User object or ID to be cleaned from the cache |
|
1280 | + * @param WP_User $user User object or ID to be cleaned from the cache |
|
1281 | 1281 | */ |
1282 | 1282 | function clean_user_cache( $user ) { |
1283 | 1283 | if ( is_numeric( $user ) ) |