@@ -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; |
@@ -59,7 +59,7 @@ |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
62 | - * @param string|array|WP_Error $data |
|
62 | + * @param string $data |
|
63 | 63 | */ |
64 | 64 | public function feedback( $data ) { |
65 | 65 | if ( is_wp_error( $data ) ) { |
@@ -204,7 +204,7 @@ |
||
204 | 204 | * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional. |
205 | 205 | * @access public |
206 | 206 | * |
207 | - * @param array $plugins Array of the basename paths of the plugins' main files. |
|
207 | + * @param string[] $plugins Array of the basename paths of the plugins' main files. |
|
208 | 208 | * @param array $args { |
209 | 209 | * Optional. Other arguments for upgrading several plugins at once. Default empty array. |
210 | 210 | * |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | * @since 2.5.0 |
392 | 392 | * |
393 | 393 | * @param string $mode string The *nix-style file permission. |
394 | - * @return int octal representation |
|
394 | + * @return string octal representation |
|
395 | 395 | */ |
396 | 396 | public function getnumchmodfromh( $mode ) { |
397 | 397 | $realmode = ''; |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | * @abstract |
467 | 467 | * |
468 | 468 | * @param string $file Name of the file to read. |
469 | - * @return mixed|bool Returns the read data or false on failure. |
|
469 | + * @return boolean Returns the read data or false on failure. |
|
470 | 470 | */ |
471 | 471 | public function get_contents( $file ) { |
472 | 472 | return false; |
@@ -153,7 +153,7 @@ |
||
153 | 153 | * |
154 | 154 | * @param string $file |
155 | 155 | * @param string $contents |
156 | - * @param bool|int $mode |
|
156 | + * @param string|boolean $mode |
|
157 | 157 | * @return bool |
158 | 158 | */ |
159 | 159 | public function put_contents($file, $contents, $mode = false ) { |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | /** |
264 | 264 | * @access public |
265 | 265 | * |
266 | - * @return bool |
|
266 | + * @return string |
|
267 | 267 | */ |
268 | 268 | public function cwd() { |
269 | 269 | $cwd = ssh2_sftp_realpath( $this->sftp_link, '.' ); |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | * @param string $group |
291 | 291 | * @param bool $recursive |
292 | 292 | * |
293 | - * @return bool |
|
293 | + * @return boolean|string |
|
294 | 294 | */ |
295 | 295 | public function chgrp($file, $group, $recursive = false ) { |
296 | 296 | if ( ! $this->exists($file) ) |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | * @param string $file Path to the file. |
335 | 335 | * @param string|int $owner A user name or number. |
336 | 336 | * @param bool $recursive Optional. If set True changes file owner recursivly. Default False. |
337 | - * @return bool True on success or false on failure. |
|
337 | + * @return boolean|string True on success or false on failure. |
|
338 | 338 | */ |
339 | 339 | public function chown( $file, $owner, $recursive = false ) { |
340 | 340 | if ( ! $this->exists($file) ) |
@@ -203,7 +203,7 @@ |
||
203 | 203 | * @access public |
204 | 204 | * |
205 | 205 | * @param string $name Property to check if set. |
206 | - * @return bool Whether the property is set. |
|
206 | + * @return boolean|null Whether the property is set. |
|
207 | 207 | */ |
208 | 208 | public function __isset( $name ) { |
209 | 209 | if ( in_array( $name, $this->compat_fields ) ) { |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | /** |
59 | 59 | * |
60 | - * @return array |
|
60 | + * @return string[] |
|
61 | 61 | */ |
62 | 62 | protected function get_table_classes() { |
63 | 63 | // todo: remove and add CSS for .themes |
@@ -425,7 +425,7 @@ |
||
425 | 425 | * @since 4.3.0 |
426 | 426 | * @access protected |
427 | 427 | * |
428 | - * @param object $user User being acted upon. |
|
428 | + * @param WP_User $user User being acted upon. |
|
429 | 429 | * @param string $column_name Current column name. |
430 | 430 | * @param string $primary Primary column name. |
431 | 431 | * @return string Row actions output for users in Multisite. |