@@ -563,7 +563,7 @@ discard block |
||
563 | 563 | * |
564 | 564 | * @param string $url The URL to request. |
565 | 565 | * @param array $args Arguments to be posted with the request. |
566 | - * @return object An object containing details about this request. |
|
566 | + * @return string An object containing details about this request. |
|
567 | 567 | */ |
568 | 568 | private function _request( $url, $args = array() ) { |
569 | 569 | // Prefix the full pod URL if necessary. |
@@ -632,7 +632,7 @@ discard block |
||
632 | 632 | * @see WP_Error::__construct() |
633 | 633 | * @since 1.6.0 |
634 | 634 | * |
635 | - * @param string|int $code Error code. |
|
635 | + * @param string $code Error code. |
|
636 | 636 | * @param string $message Error message. |
637 | 637 | * @param mixed $data Error data. |
638 | 638 | */ |
@@ -738,7 +738,7 @@ discard block |
||
738 | 738 | /** |
739 | 739 | * Validate checkboxes, make them either true or false. |
740 | 740 | * |
741 | - * @param string|array $checkboxes Checkboxes to validate. |
|
741 | + * @param string[] $checkboxes Checkboxes to validate. |
|
742 | 742 | * @param array $options Options values themselves. |
743 | 743 | * @return array The validated options. |
744 | 744 | */ |
@@ -752,7 +752,7 @@ discard block |
||
752 | 752 | /** |
753 | 753 | * Validate single-select fields and make sure their selected value are valid. |
754 | 754 | * |
755 | - * @param string|array $selects Name(s) of the select fields. |
|
755 | + * @param string $selects Name(s) of the select fields. |
|
756 | 756 | * @param array $options Options values themselves. |
757 | 757 | * @return array The validated options. |
758 | 758 | */ |
@@ -768,7 +768,7 @@ discard block |
||
768 | 768 | /** |
769 | 769 | * Validate multi-select fields and make sure their selected values are valid. |
770 | 770 | * |
771 | - * @param string|array $selects Name(s) of the select fields. |
|
771 | + * @param string $selects Name(s) of the select fields. |
|
772 | 772 | * @param array $options Options values themselves. |
773 | 773 | * @return array The validated options. |
774 | 774 | */ |
@@ -822,7 +822,7 @@ discard block |
||
822 | 822 | * Validate the passed aspects or services. |
823 | 823 | * |
824 | 824 | * @param array $aspects_services List of aspects or services that need to be validated. |
825 | - * @param array $default Default value if not valid. |
|
825 | + * @param string[] $default Default value if not valid. |
|
826 | 826 | * @return array The validated list of aspects or services. |
827 | 827 | */ |
828 | 828 | public function validate_aspects_services( &$aspects_services, $default = array() ) { |
@@ -191,7 +191,7 @@ |
||
191 | 191 | * |
192 | 192 | * @param integer $post_id ID of the post being saved. |
193 | 193 | * @param WP_Post $post Post object being saved. |
194 | - * @return boolean If the post was posted successfully. |
|
194 | + * @return false|null If the post was posted successfully. |
|
195 | 195 | */ |
196 | 196 | public function post( $post_id, $post ) { |
197 | 197 | $this->_assign_wp_post( $post ); |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | * Add the "Settings" link to the plugins page. |
288 | 288 | * |
289 | 289 | * @param array $links Links to display for plugin on plugins page. |
290 | - * @return array Links to display for plugin on plugins page. |
|
290 | + * @return string[] Links to display for plugin on plugins page. |
|
291 | 291 | */ |
292 | 292 | public function settings_link( $links ) { |
293 | 293 | $links[] = '<a href="' . admin_url( 'options-general.php?page=wp_to_diaspora' ) . '">' . __( 'Settings' ) . '</a>'; |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | /** |
401 | 401 | * Check the pod connection status. |
402 | 402 | * |
403 | - * @return string The status of the connection. |
|
403 | + * @return boolean|null The status of the connection. |
|
404 | 404 | */ |
405 | 405 | private function _check_pod_connection_status() { |
406 | 406 | $options = WP2D_Options::instance(); |