@@ -308,7 +308,7 @@ |
||
| 308 | 308 | * @since 8.7.0 |
| 309 | 309 | * |
| 310 | 310 | * @param array|string $data the data to be encoded. |
| 311 | - * @return boolean|string The encoded string on success, false on failure |
|
| 311 | + * @return false|string The encoded string on success, false on failure |
|
| 312 | 312 | */ |
| 313 | 313 | public function encrypt_data_to_wpcom( $data ) { |
| 314 | 314 | |
@@ -220,7 +220,7 @@ |
||
| 220 | 220 | * Also used by @see self::test_request_port_constants |
| 221 | 221 | * |
| 222 | 222 | * @param mixed $http_x_forwarded_port value of $_SERVER[ 'HTTP_X_FORWARDED_PORT' ]. |
| 223 | - * @param mixed $server_port value of $_SERVER[ 'SERVER_PORT' ]. Null will unset the value. |
|
| 223 | + * @param string $server_port value of $_SERVER[ 'SERVER_PORT' ]. Null will unset the value. |
|
| 224 | 224 | * @param string $expeceted The expected output. Null will unset the value. |
| 225 | 225 | * @param boolean $ssl Whether to consider current request using SSL or not. |
| 226 | 226 | * |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | * |
| 104 | 104 | * @param string $content The current message. |
| 105 | 105 | * |
| 106 | - * @return array The new message. |
|
| 106 | + * @return string The new message. |
|
| 107 | 107 | */ |
| 108 | 108 | public static function jitm_woocommerce_services_msg( $content ) { |
| 109 | 109 | if ( ! function_exists( 'wc_get_base_location' ) ) { |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | * |
| 56 | 56 | * @since 5.6.0 |
| 57 | 57 | * |
| 58 | - * @return object The class instance. |
|
| 58 | + * @return Jetpack_Lazy_Images The class instance. |
|
| 59 | 59 | */ |
| 60 | 60 | public static function instance() { |
| 61 | 61 | if ( is_null( self::$instance ) ) { |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * @param string $type The type of option to return. Defaults to 'compact'. |
| 29 | 29 | * |
| 30 | - * @return array |
|
| 30 | + * @return string[] |
|
| 31 | 31 | */ |
| 32 | 32 | public static function get_option_names( $type = 'compact' ) { |
| 33 | 33 | switch ( $type ) { |
@@ -505,7 +505,7 @@ discard block |
||
| 505 | 505 | * @since 5.4.0 |
| 506 | 506 | * |
| 507 | 507 | * @param boolean $strip_unsafe_options If true, and by default, will strip out options necessary for the connection to WordPress.com. |
| 508 | - * @return array An array of all options managed via the Jetpack_Options class. |
|
| 508 | + * @return string[] An array of all options managed via the Jetpack_Options class. |
|
| 509 | 509 | */ |
| 510 | 510 | public static function get_all_jetpack_options( $strip_unsafe_options = true ) { |
| 511 | 511 | $jetpack_options = self::get_option_names(); |
@@ -548,7 +548,7 @@ discard block |
||
| 548 | 548 | * |
| 549 | 549 | * @since 5.4.0 |
| 550 | 550 | * |
| 551 | - * @return array |
|
| 551 | + * @return string[] |
|
| 552 | 552 | */ |
| 553 | 553 | public static function get_all_wp_options() { |
| 554 | 554 | // A manual build of the wp options. |
@@ -92,6 +92,10 @@ |
||
| 92 | 92 | return $ret; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | +/** |
|
| 96 | + * @param string $prefix |
|
| 97 | + * @param string $sep |
|
| 98 | + */ |
|
| 95 | 99 | function _http_build_query( $data, $prefix = null, $sep = null, $key = '', $urlencode = true ) { |
| 96 | 100 | $ret = array(); |
| 97 | 101 | |
@@ -294,7 +294,7 @@ |
||
| 294 | 294 | /** |
| 295 | 295 | * Mock $wpdb->get_var() and make it return a certain value. |
| 296 | 296 | * |
| 297 | - * @param mixed $return_value Return value of the function. |
|
| 297 | + * @param integer $return_value Return value of the function. |
|
| 298 | 298 | * |
| 299 | 299 | * PHPUnit\Framework\MockObject\MockObject The mock object. |
| 300 | 300 | */ |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | * @access public |
| 337 | 337 | * @static |
| 338 | 338 | * |
| 339 | - * @return bool|null False if sync is not allowed. |
|
| 339 | + * @return false|null False if sync is not allowed. |
|
| 340 | 340 | */ |
| 341 | 341 | public static function do_initial_sync() { |
| 342 | 342 | // Lets not sync if we are not suppose to. |
@@ -506,7 +506,7 @@ discard block |
||
| 506 | 506 | * @static |
| 507 | 507 | * |
| 508 | 508 | * @param array $sync_modules The list of sync modules declared prior to this filter. |
| 509 | - * @return array A list of sync modules that now includes Woo's modules. |
|
| 509 | + * @return string[] A list of sync modules that now includes Woo's modules. |
|
| 510 | 510 | */ |
| 511 | 511 | public static function add_woocommerce_sync_module( $sync_modules ) { |
| 512 | 512 | $sync_modules[] = 'Automattic\\Jetpack\\Sync\\Modules\\WooCommerce'; |
@@ -533,7 +533,7 @@ discard block |
||
| 533 | 533 | * @static |
| 534 | 534 | * |
| 535 | 535 | * @param array $sync_modules The list of sync modules declared prior to this filer. |
| 536 | - * @return array A list of sync modules that now includes WP Super Cache's modules. |
|
| 536 | + * @return string[] A list of sync modules that now includes WP Super Cache's modules. |
|
| 537 | 537 | */ |
| 538 | 538 | public static function add_wp_super_cache_sync_module( $sync_modules ) { |
| 539 | 539 | $sync_modules[] = 'Automattic\\Jetpack\\Sync\\Modules\\WP_Super_Cache'; |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | /** |
| 182 | 182 | * Return a hosting provider using a set of known constants. |
| 183 | 183 | * |
| 184 | - * @return mixed A host identifier string or false. |
|
| 184 | + * @return string|false A host identifier string or false. |
|
| 185 | 185 | */ |
| 186 | 186 | public function get_hosting_provider_by_known_constant() { |
| 187 | 187 | $hosting_provider_constants = array( |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | /** |
| 210 | 210 | * Return a hosting provider using a set of known classes. |
| 211 | 211 | * |
| 212 | - * @return mixed A host identifier string or false. |
|
| 212 | + * @return string|false A host identifier string or false. |
|
| 213 | 213 | */ |
| 214 | 214 | public function get_hosting_provider_by_known_class() { |
| 215 | 215 | $hosting_provider = false; |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | /** |
| 227 | 227 | * Return a hosting provider using a set of known functions. |
| 228 | 228 | * |
| 229 | - * @return mixed A host identifier string or false. |
|
| 229 | + * @return string|false A host identifier string or false. |
|
| 230 | 230 | */ |
| 231 | 231 | public function get_hosting_provider_by_known_function() { |
| 232 | 232 | $hosting_provider = false; |
@@ -441,7 +441,7 @@ discard block |
||
| 441 | 441 | * |
| 442 | 442 | * @param string $option Option value from the site. |
| 443 | 443 | * @param callable $url_function Function retrieving the URL to normalize. |
| 444 | - * @return mixed|string URL. |
|
| 444 | + * @return callable URL. |
|
| 445 | 445 | */ |
| 446 | 446 | public static function normalize_www_in_url( $option, $url_function ) { |
| 447 | 447 | $url = wp_parse_url( call_user_func( $url_function ) ); |