@@ -165,7 +165,7 @@ |
||
165 | 165 | * @param string $url Request URL. |
166 | 166 | * @param mixed $body Request body. |
167 | 167 | * @param bool $verify_body_hash Whether to verify the body hash against the body. |
168 | - * @return string|WP_Error Request signature, or a WP_Error on failure. |
|
168 | + * @return string Request signature, or a WP_Error on failure. |
|
169 | 169 | */ |
170 | 170 | public function sign_request( $token = '', $timestamp = 0, $nonce = '', $body_hash = '', $method = '', $url = '', $body = null, $verify_body_hash = true ) { |
171 | 171 | if ( ! $this->secret ) { |
@@ -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' ) ) { |
@@ -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. |
@@ -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'; |
@@ -380,7 +380,7 @@ |
||
380 | 380 | * |
381 | 381 | * @param string $option Option value from the site. |
382 | 382 | * @param callable $url_function Function retrieving the URL to normalize. |
383 | - * @return mixed|string URL. |
|
383 | + * @return callable URL. |
|
384 | 384 | */ |
385 | 385 | public static function normalize_www_in_url( $option, $url_function ) { |
386 | 386 | $url = wp_parse_url( call_user_func( $url_function ) ); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * @param array $attr The attributes of the shortcode. |
45 | 45 | * @param array $old_attr Optional array of attributes from the old shortcode format. |
46 | 46 | * |
47 | - * @return array Width and height. |
|
47 | + * @return integer[] Width and height. |
|
48 | 48 | */ |
49 | 49 | function jetpack_shortcode_get_vimeo_dimensions( $attr, $old_attr = array() ) { |
50 | 50 | global $content_width; |
@@ -382,7 +382,7 @@ |
||
382 | 382 | * |
383 | 383 | * @param array $query_args The query args of the URL. |
384 | 384 | * |
385 | - * @return array The width and height of the shortcode. |
|
385 | + * @return integer[] The width and height of the shortcode. |
|
386 | 386 | */ |
387 | 387 | function jetpack_shortcode_youtube_dimensions( $query_args ) { |
388 | 388 | global $content_width; |
@@ -158,7 +158,7 @@ |
||
158 | 158 | * Prevent adding items to the queue if it hasn't sent an item for 15 mins |
159 | 159 | * AND the queue is over 1000 items long (by default). |
160 | 160 | * |
161 | - * @param object $queue Sync queue. |
|
161 | + * @param string $queue Sync queue. |
|
162 | 162 | * @return bool |
163 | 163 | */ |
164 | 164 | public function can_add_to_queue( $queue ) { |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | /** |
274 | 274 | * Verifies the signature of the current request. |
275 | 275 | * |
276 | - * @return false|array |
|
276 | + * @return boolean |
|
277 | 277 | */ |
278 | 278 | public function verify_xml_rpc_signature() { |
279 | 279 | if ( is_null( $this->xmlrpc_verification ) ) { |
@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | * @param Integer $user_id (optional) the user identifier, defaults to current user. |
638 | 638 | * @param String $redirect_url the URL to redirect the user to for processing, defaults to |
639 | 639 | * admin_url(). |
640 | - * @return WP_Error only in case of a failed user lookup. |
|
640 | + * @return \WP_Error|null only in case of a failed user lookup. |
|
641 | 641 | */ |
642 | 642 | public function connect_user( $user_id = null, $redirect_url = null ) { |
643 | 643 | $user = null; |
@@ -1167,6 +1167,7 @@ discard block |
||
1167 | 1167 | * @param String $action The action name. |
1168 | 1168 | * @param Integer $user_id The user identifier. |
1169 | 1169 | * @param Integer $exp Expiration time in seconds. |
1170 | + * @return string |
|
1170 | 1171 | */ |
1171 | 1172 | public function generate_secrets( $action, $user_id = false, $exp = 600 ) { |
1172 | 1173 | if ( false === $user_id ) { |
@@ -1660,7 +1661,7 @@ discard block |
||
1660 | 1661 | * |
1661 | 1662 | * @param int|false $user_id false: Return the Blog Token. int: Return that user's User Token. |
1662 | 1663 | * @param string|false $token_key If provided, check that the token matches the provided input. |
1663 | - * @param bool|true $suppress_errors If true, return a falsy value when the token isn't found; When false, return a descriptive WP_Error when the token isn't found. |
|
1664 | + * @param boolean $suppress_errors If true, return a falsy value when the token isn't found; When false, return a descriptive WP_Error when the token isn't found. |
|
1664 | 1665 | * |
1665 | 1666 | * @return object|false |
1666 | 1667 | */ |