@@ -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 | * |
@@ -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 ) ) { |
@@ -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 | */ |
@@ -325,7 +325,7 @@ |
||
325 | 325 | * @access protected |
326 | 326 | * |
327 | 327 | * @param string $status Comment status. |
328 | - * @return string|bool New comment_approved value, false if the status doesn't affect it. |
|
328 | + * @return string|false New comment_approved value, false if the status doesn't affect it. |
|
329 | 329 | */ |
330 | 330 | protected function comment_status_to_approval_value( $status ) { |
331 | 331 | switch ( (string) $status ) { |
@@ -64,8 +64,8 @@ |
||
64 | 64 | * Get a single Meta Result. |
65 | 65 | * |
66 | 66 | * @param string $object_type post, comment, term, user. |
67 | - * @param null $id Object ID. |
|
68 | - * @param null $meta_key Meta Key. |
|
67 | + * @param integer $id Object ID. |
|
68 | + * @param string $meta_key Meta Key. |
|
69 | 69 | * |
70 | 70 | * @return mixed|null |
71 | 71 | */ |
@@ -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 ) { |
@@ -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 | */ |
@@ -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'; |