@@ -524,7 +524,7 @@ |
||
| 524 | 524 | * @since 2.5.0 |
| 525 | 525 | * |
| 526 | 526 | * @param string $data Input string |
| 527 | - * @return array array(type, value) |
|
| 527 | + * @return string[] array(type, value) |
|
| 528 | 528 | */ |
| 529 | 529 | function prep_atom_text_construct($data) { |
| 530 | 530 | if (strpos($data, '<') === false && strpos($data, '&') === false) { |
@@ -218,7 +218,7 @@ |
||
| 218 | 218 | * @global float $timestart Seconds from when timer_start() is called. |
| 219 | 219 | * @global float $timeend Seconds from when function is called. |
| 220 | 220 | * |
| 221 | - * @param int|bool $display Whether to echo or return the results. Accepts 0|false for return, |
|
| 221 | + * @param integer $display Whether to echo or return the results. Accepts 0|false for return, |
|
| 222 | 222 | * 1|true for echo. Default 0|false. |
| 223 | 223 | * @param int $precision The number of digits from the right of the decimal to display. |
| 224 | 224 | * Default 3. |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * @param resource $fh |
| 71 | - * @return true |
|
| 71 | + * @return boolean |
|
| 72 | 72 | */ |
| 73 | 73 | function export_to_file_handle($fh) { |
| 74 | 74 | $entries = array_filter( $this->entries, array( $this, 'is_entry_good_for_export' ) ); |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * Sets the endianness of the file. |
| 34 | 34 | * |
| 35 | - * @param $endian string 'big' or 'little' |
|
| 35 | + * @param string $endian string 'big' or 'little' |
|
| 36 | 36 | */ |
| 37 | 37 | function setEndian($endian) { |
| 38 | 38 | $this->endian = $endian; |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | /** |
| 42 | 42 | * Reads a 32bit Integer from the Stream |
| 43 | 43 | * |
| 44 | - * @return mixed The integer, corresponding to the next 32 bits from |
|
| 44 | + * @return integer The integer, corresponding to the next 32 bits from |
|
| 45 | 45 | * the stream of false if there are not enough bytes or on error |
| 46 | 46 | */ |
| 47 | 47 | function readint32() { |
@@ -119,14 +119,14 @@ discard block |
||
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | /** |
| 122 | - * @return true |
|
| 122 | + * @return boolean |
|
| 123 | 123 | */ |
| 124 | 124 | function is_resource() { |
| 125 | 125 | return true; |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /** |
| 129 | - * @return true |
|
| 129 | + * @return boolean |
|
| 130 | 130 | */ |
| 131 | 131 | function close() { |
| 132 | 132 | return true; |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | * @since 3.1.0 |
| 136 | 136 | * |
| 137 | 137 | * @param string $format The post format slug. |
| 138 | - * @return string|WP_Error|false The post format term link. |
|
| 138 | + * @return string The post format term link. |
|
| 139 | 139 | */ |
| 140 | 140 | function get_post_format_link( $format ) { |
| 141 | 141 | $term = get_term_by('slug', 'post-format-' . $format, 'post_format' ); |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | * @since 1.5.0 |
| 18 | 18 | * |
| 19 | 19 | * @param string $type Filename without extension. |
| 20 | - * @param array $templates An optional list of template candidates |
|
| 20 | + * @param string[] $templates An optional list of template candidates |
|
| 21 | 21 | * @return string Full path to template file. |
| 22 | 22 | */ |
| 23 | 23 | function get_query_template( $type, $templates = array() ) { |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @since 0.71 |
| 22 | 22 | * |
| 23 | - * @param mixed $error Whether there was an error. |
|
| 23 | + * @param integer $error Whether there was an error. |
|
| 24 | 24 | * Default '0'. Accepts '0' or '1', true or false. |
| 25 | 25 | * @param string $error_message Error message if an error occurred. |
| 26 | 26 | */ |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | * @global wpdb $wpdb WordPress database abstraction object. |
| 83 | 83 | * |
| 84 | 84 | * @param int $link_id ID of the link to delete |
| 85 | - * @return true Always true. |
|
| 85 | + * @return boolean Always true. |
|
| 86 | 86 | */ |
| 87 | 87 | function wp_delete_link( $link_id ) { |
| 88 | 88 | global $wpdb; |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | |
| 485 | 485 | /** |
| 486 | 486 | * |
| 487 | - * @return array |
|
| 487 | + * @return string[] |
|
| 488 | 488 | */ |
| 489 | 489 | protected function get_table_classes() { |
| 490 | 490 | return array( 'widefat', 'fixed', 'striped', is_post_type_hierarchical( $this->screen->post_type ) ? 'pages' : 'posts' ); |
@@ -1162,7 +1162,7 @@ discard block |
||
| 1162 | 1162 | * @since 4.3.0 |
| 1163 | 1163 | * @access protected |
| 1164 | 1164 | * |
| 1165 | - * @param object $post Post being acted upon. |
|
| 1165 | + * @param WP_Post $post Post being acted upon. |
|
| 1166 | 1166 | * @param string $column_name Current column name. |
| 1167 | 1167 | * @param string $primary Primary column name. |
| 1168 | 1168 | * @return string Row actions output for posts. |