@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * |
| 39 | 39 | * A null argument will log the file and line number of the l() call. |
| 40 | 40 | * |
| 41 | - * @param mixed $stuff Information to log. |
|
| 41 | + * @param string $stuff Information to log. |
|
| 42 | 42 | */ |
| 43 | 43 | function l( $stuff = null ) { |
| 44 | 44 | // Do nothing when debugging is off. |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | * |
| 167 | 167 | * @param string $name Timer name. |
| 168 | 168 | * |
| 169 | - * @return mixed void or elapsed time. |
|
| 169 | + * @return null|double void or elapsed time. |
|
| 170 | 170 | */ |
| 171 | 171 | function e( $name = '' ) { |
| 172 | 172 | static $times = array(); |
@@ -50,6 +50,7 @@ |
||
| 50 | 50 | * Perform the IXR request. |
| 51 | 51 | * |
| 52 | 52 | * @param string[] ...$args IXR args. |
| 53 | + * @param string $args |
|
| 53 | 54 | * |
| 54 | 55 | * @return bool True if request succeeded, false otherwise. |
| 55 | 56 | */ |
@@ -25,6 +25,7 @@ |
||
| 25 | 25 | * The rest of the arguments are the params specified to the method. |
| 26 | 26 | * |
| 27 | 27 | * @param string[] ...$args IXR args. |
| 28 | + * @param string $args |
|
| 28 | 29 | */ |
| 29 | 30 | public function addCall( ...$args ) { |
| 30 | 31 | $method_name = array_shift( $args ); |
@@ -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 ) { |
@@ -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 | |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | /** |
| 314 | 314 | * Verifies the signature of the current request. |
| 315 | 315 | * |
| 316 | - * @return false|array |
|
| 316 | + * @return boolean |
|
| 317 | 317 | */ |
| 318 | 318 | public function verify_xml_rpc_signature() { |
| 319 | 319 | if ( is_null( $this->xmlrpc_verification ) ) { |
@@ -1286,6 +1286,7 @@ discard block |
||
| 1286 | 1286 | * @param String $action The action name. |
| 1287 | 1287 | * @param Integer $user_id The user identifier. |
| 1288 | 1288 | * @param Integer $exp Expiration time in seconds. |
| 1289 | + * @return string |
|
| 1289 | 1290 | */ |
| 1290 | 1291 | public function generate_secrets( $action, $user_id = false, $exp = 600 ) { |
| 1291 | 1292 | if ( false === $user_id ) { |
@@ -2242,7 +2243,7 @@ discard block |
||
| 2242 | 2243 | * |
| 2243 | 2244 | * @param int|false $user_id false: Return the Blog Token. int: Return that user's User Token. |
| 2244 | 2245 | * @param string|false $token_key If provided, check that the token matches the provided input. |
| 2245 | - * @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. |
|
| 2246 | + * @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. |
|
| 2246 | 2247 | * |
| 2247 | 2248 | * @return object|false |
| 2248 | 2249 | */ |
@@ -2626,7 +2627,7 @@ discard block |
||
| 2626 | 2627 | * Fetches a signed token. |
| 2627 | 2628 | * |
| 2628 | 2629 | * @param object $token the token. |
| 2629 | - * @return WP_Error|string a signed token |
|
| 2630 | + * @return string a signed token |
|
| 2630 | 2631 | */ |
| 2631 | 2632 | public function get_signed_token( $token ) { |
| 2632 | 2633 | if ( ! isset( $token->secret ) || empty( $token->secret ) ) { |
@@ -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 ) ) { |