@@ -623,7 +623,7 @@ discard block |
||
| 623 | 623 | * @param string $url The URL to request. |
| 624 | 624 | * @param array $args Arguments to be posted with the request. |
| 625 | 625 | * |
| 626 | - * @return object An object containing details about this request. |
|
| 626 | + * @return string An object containing details about this request. |
|
| 627 | 627 | */ |
| 628 | 628 | private function _request( $url, array $args = [] ) { |
| 629 | 629 | // Prefix the full pod URL if necessary. |
@@ -693,7 +693,7 @@ discard block |
||
| 693 | 693 | * @see WP_Error::__construct() |
| 694 | 694 | * @since 1.6.0 |
| 695 | 695 | * |
| 696 | - * @param string|int $code Error code. |
|
| 696 | + * @param string $code Error code. |
|
| 697 | 697 | * @param string $message Error message. |
| 698 | 698 | * @param mixed $data Error data. |
| 699 | 699 | */ |
@@ -869,7 +869,7 @@ discard block |
||
| 869 | 869 | /** |
| 870 | 870 | * Validate checkboxes, make them either true or false. |
| 871 | 871 | * |
| 872 | - * @param string|array $checkboxes Checkboxes to validate. |
|
| 872 | + * @param string[] $checkboxes Checkboxes to validate. |
|
| 873 | 873 | * @param array $options Options values themselves. |
| 874 | 874 | * |
| 875 | 875 | * @return array The validated options. |
@@ -885,7 +885,7 @@ discard block |
||
| 885 | 885 | /** |
| 886 | 886 | * Validate single-select fields and make sure their selected value are valid. |
| 887 | 887 | * |
| 888 | - * @param string|array $selects Name(s) of the select fields. |
|
| 888 | + * @param string $selects Name(s) of the select fields. |
|
| 889 | 889 | * @param array $options Options values themselves. |
| 890 | 890 | * |
| 891 | 891 | * @return array The validated options. |
@@ -903,7 +903,7 @@ discard block |
||
| 903 | 903 | /** |
| 904 | 904 | * Validate multi-select fields and make sure their selected values are valid. |
| 905 | 905 | * |
| 906 | - * @param string|array $selects Name(s) of the select fields. |
|
| 906 | + * @param string $selects Name(s) of the select fields. |
|
| 907 | 907 | * @param array $options Options values themselves. |
| 908 | 908 | * |
| 909 | 909 | * @return array The validated options. |
@@ -963,7 +963,7 @@ discard block |
||
| 963 | 963 | * Validate the passed aspects or services. |
| 964 | 964 | * |
| 965 | 965 | * @param array $aspects_services List of aspects or services that need to be validated. |
| 966 | - * @param array $default Default value if not valid. |
|
| 966 | + * @param string[] $default Default value if not valid. |
|
| 967 | 967 | * |
| 968 | 968 | * @return array The validated list of aspects or services. |
| 969 | 969 | */ |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | * |
| 333 | 333 | * @param array $links Links to display for plugin on plugins page. |
| 334 | 334 | * |
| 335 | - * @return array Links to display for plugin on plugins page. |
|
| 335 | + * @return string[] Links to display for plugin on plugins page. |
|
| 336 | 336 | */ |
| 337 | 337 | public function settings_link( $links ) { |
| 338 | 338 | $links[] = '<a href="' . admin_url( 'options-general.php?page=wp_to_diaspora' ) . '">' . __( 'Settings' ) . '</a>'; |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | /** |
| 408 | 408 | * Check the pod connection status. |
| 409 | 409 | * |
| 410 | - * @return bool The status of the connection. |
|
| 410 | + * @return boolean|null The status of the connection. |
|
| 411 | 411 | */ |
| 412 | 412 | private function _check_pod_connection_status() { |
| 413 | 413 | $options = WP2D_Options::instance(); |