@@ -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' ) ) { |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | * Add a callback for WooCommerce product rendering in infinite scroll. |
| 67 | 67 | * |
| 68 | 68 | * @param array $callbacks Array of render callpacks for IS. |
| 69 | - * @return array |
|
| 69 | + * @return string[] |
|
| 70 | 70 | */ |
| 71 | 71 | function jetpack_woocommerce_infinite_scroll_render_callback( $callbacks ) { |
| 72 | 72 | $callbacks[] = 'jetpack_woocommerce_infinite_scroll_render'; |
@@ -249,6 +249,9 @@ |
||
| 249 | 249 | } |
| 250 | 250 | } |
| 251 | 251 | |
| 252 | + /** |
|
| 253 | + * @param string $access_token |
|
| 254 | + */ |
|
| 252 | 255 | private static function verify_token( $access_token ) { |
| 253 | 256 | $request = array( |
| 254 | 257 | 'headers' => array( |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | * |
| 19 | 19 | * @param string $access_token The Instagram access token. |
| 20 | 20 | * @param int $count The number of Instagram posts to fetch. |
| 21 | - * @return mixed |
|
| 21 | + * @return integer|null |
|
| 22 | 22 | */ |
| 23 | 23 | public static function get_instagram_gallery( $access_token, $count ) { |
| 24 | 24 | $site_id = self::get_site_id(); |