@@ -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'; |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | * Prevent adding items to the queue if it hasn't sent an item for 15 mins |
158 | 158 | * AND the queue is over 1000 items long (by default). |
159 | 159 | * |
160 | - * @param object $queue Sync queue. |
|
160 | + * @param string $queue Sync queue. |
|
161 | 161 | * @return bool |
162 | 162 | */ |
163 | 163 | public function can_add_to_queue( $queue ) { |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | * Sync Data Loss Handler |
361 | 361 | * |
362 | 362 | * @param Queue $queue Sync queue. |
363 | - * @return boolean was send successful |
|
363 | + * @return null|Items was send successful |
|
364 | 364 | */ |
365 | 365 | public function sync_data_loss( $queue ) { |
366 | 366 | if ( ! Settings::is_sync_enabled() ) { |