@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * @todo Use $wpdb->prepare for the SQL query. |
| 202 | 202 | * |
| 203 | 203 | * @param array $config Full sync configuration for this sync module. |
| 204 | - * @return array Number of items yet to be enqueued. |
|
| 204 | + * @return integer Number of items yet to be enqueued. |
|
| 205 | 205 | */ |
| 206 | 206 | public function estimate_full_sync_actions( $config ) { |
| 207 | 207 | global $wpdb; |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | * |
| 238 | 238 | * @access public |
| 239 | 239 | * |
| 240 | - * @return array Full sync actions of this module. |
|
| 240 | + * @return string[] Full sync actions of this module. |
|
| 241 | 241 | */ |
| 242 | 242 | public function get_full_sync_actions() { |
| 243 | 243 | return array( 'jetpack_full_sync_posts' ); |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | * |
| 125 | 125 | * @access public |
| 126 | 126 | * |
| 127 | - * @return array Full sync actions of this module. |
|
| 127 | + * @return string[] Full sync actions of this module. |
|
| 128 | 128 | */ |
| 129 | 129 | public function get_full_sync_actions() { |
| 130 | 130 | return array( 'jetpack_full_sync_term_relationships' ); |
@@ -502,7 +502,7 @@ discard block |
||
| 502 | 502 | * @access public |
| 503 | 503 | * |
| 504 | 504 | * @param array $config Full sync configuration for this sync module. |
| 505 | - * @return array Number of items yet to be enqueued. |
|
| 505 | + * @return integer Number of items yet to be enqueued. |
|
| 506 | 506 | */ |
| 507 | 507 | public function estimate_full_sync_actions( $config ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
| 508 | 508 | return 1; |
@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | * |
| 523 | 523 | * @access public |
| 524 | 524 | * |
| 525 | - * @return array Full sync actions of this module. |
|
| 525 | + * @return string[] Full sync actions of this module. |
|
| 526 | 526 | */ |
| 527 | 527 | public function get_full_sync_actions() { |
| 528 | 528 | return array( 'jetpack_full_sync_theme_data' ); |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | * |
| 206 | 206 | * @access public |
| 207 | 207 | * |
| 208 | - * @param \WP_User $user User object. |
|
| 208 | + * @param \WP_User|null $user User object. |
|
| 209 | 209 | * @return \WP_User Expanded user object. |
| 210 | 210 | */ |
| 211 | 211 | public function expand_user( $user ) { |
@@ -545,7 +545,7 @@ discard block |
||
| 545 | 545 | * @access public |
| 546 | 546 | * |
| 547 | 547 | * @param int $user_id ID of the user. |
| 548 | - * @return array Current flags of the user. |
|
| 548 | + * @return string Current flags of the user. |
|
| 549 | 549 | */ |
| 550 | 550 | public function get_flags( $user_id ) { |
| 551 | 551 | if ( isset( $this->flags[ $user_id ] ) ) { |
@@ -636,7 +636,7 @@ discard block |
||
| 636 | 636 | * @todo Refactor to prepare the SQL query before executing it. |
| 637 | 637 | * |
| 638 | 638 | * @param array $config Full sync configuration for this sync module. |
| 639 | - * @return array Number of items yet to be enqueued. |
|
| 639 | + * @return integer Number of items yet to be enqueued. |
|
| 640 | 640 | */ |
| 641 | 641 | public function estimate_full_sync_actions( $config ) { |
| 642 | 642 | global $wpdb; |
@@ -680,7 +680,7 @@ discard block |
||
| 680 | 680 | * |
| 681 | 681 | * @access public |
| 682 | 682 | * |
| 683 | - * @return array Full sync actions of this module. |
|
| 683 | + * @return string[] Full sync actions of this module. |
|
| 684 | 684 | */ |
| 685 | 685 | public function get_full_sync_actions() { |
| 686 | 686 | return array( 'jetpack_full_sync_users' ); |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | * |
| 225 | 225 | * @param string $table Table name to validate. |
| 226 | 226 | * |
| 227 | - * @return mixed|string |
|
| 227 | + * @return string |
|
| 228 | 228 | * @throws Exception Throw an exception on validation failure. |
| 229 | 229 | */ |
| 230 | 230 | private function validate_table_name( $table ) { |
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | * @param int|null $range_to The end of the range. |
| 483 | 483 | * @param int|null $limit How many values to return. |
| 484 | 484 | * |
| 485 | - * @return array|object|void |
|
| 485 | + * @return boolean |
|
| 486 | 486 | * @throws Exception Throws an exception if validation fails on the internal function calls. |
| 487 | 487 | */ |
| 488 | 488 | public function get_range_edges( $range_from = null, $range_to = null, $limit = null ) { |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | /** |
| 53 | 53 | * Record an event. |
| 54 | 54 | * |
| 55 | - * @param mixed $event Event object to send to Tracks. An array will be cast to object. Required. |
|
| 55 | + * @param Jetpack_Tracks_Event $event Event object to send to Tracks. An array will be cast to object. Required. |
|
| 56 | 56 | * Properties are included directly in the pixel query string after light validation. |
| 57 | 57 | * @return mixed True on success, WP_Error on failure |
| 58 | 58 | */ |
@@ -119,8 +119,8 @@ |
||
| 119 | 119 | /** |
| 120 | 120 | * Determines whether tracking should be enabled. |
| 121 | 121 | * |
| 122 | - * @param Automattic\Jetpack\Terms_Of_Service $terms_of_service A Terms_Of_Service object. |
|
| 123 | - * @param Automattic\Jetpack\Status $status A Status object. |
|
| 122 | + * @param Terms_Of_Service $terms_of_service A Terms_Of_Service object. |
|
| 123 | + * @param Status $status A Status object. |
|
| 124 | 124 | * |
| 125 | 125 | * @return boolean True if tracking should be enabled, else false. |
| 126 | 126 | */ |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | * |
| 46 | 46 | * @param array $allowed_post_types Allowed post types. |
| 47 | 47 | * |
| 48 | - * @return array |
|
| 48 | + * @return string[] |
|
| 49 | 49 | */ |
| 50 | 50 | public function allow_bbpress_post_types( $allowed_post_types ) { |
| 51 | 51 | $allowed_post_types[] = 'forum'; |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * |
| 60 | 60 | * @param array $allowed_meta_keys Allowed meta keys. |
| 61 | 61 | * |
| 62 | - * @return array |
|
| 62 | + * @return string[] |
|
| 63 | 63 | */ |
| 64 | 64 | public function allow_bbpress_public_metadata( $allowed_meta_keys ) { |
| 65 | 65 | $allowed_meta_keys[] = '_bbp_forum_id'; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | * @param string $url_orig Original URL. |
| 19 | 19 | * @param array $url_info Pieces of original URL. |
| 20 | 20 | * |
| 21 | - * @return bool |
|
| 21 | + * @return false|string |
|
| 22 | 22 | */ |
| 23 | 23 | function jetpack_no_qtranslate_rest_url_redirect( $url_lang, $url_orig, $url_info ) { |
| 24 | 24 | if ( false !== strpos( $url_info['wp-path'], 'wp-json/jetpack' ) ) { |