@@ -43,7 +43,7 @@ |
||
| 43 | 43 | /** |
| 44 | 44 | * This function mirrors Jetpack_Data::is_usable_domain() in the WPCOM codebase. |
| 45 | 45 | * |
| 46 | - * @param $domain |
|
| 46 | + * @param string|false $domain |
|
| 47 | 47 | * @param array $extra |
| 48 | 48 | * |
| 49 | 49 | * @return bool|WP_Error |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * Convenience function for grabbing options from params->options |
| 48 | 48 | * |
| 49 | 49 | * @param string $option the option to grab |
| 50 | - * @param mixed $default (optional) |
|
| 50 | + * @param boolean $default (optional) |
|
| 51 | 51 | * @return option or $default if not set |
| 52 | 52 | * |
| 53 | 53 | * @since 4.5.0 |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | |
| 466 | 466 | /** |
| 467 | 467 | * Check the reasons to bail before we attempt to insert ads. |
| 468 | - * @return true if we should bail (don't insert ads) |
|
| 468 | + * @return boolean if we should bail (don't insert ads) |
|
| 469 | 469 | * |
| 470 | 470 | * @since 4.5.0 |
| 471 | 471 | */ |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * Update the media post grabbing the post values from |
| 102 | 102 | * the `attrs` parameter |
| 103 | 103 | * |
| 104 | - * @param {Number} $media_id - post media ID |
|
| 104 | + * @param integer $media_id - post media ID |
|
| 105 | 105 | * @param {Object} $attrs - `attrs` parameter sent from the client in the request body |
| 106 | 106 | * @return |
| 107 | 107 | */ |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | * Save the given temporal file in a local folder. |
| 203 | 203 | * |
| 204 | 204 | * @param {Array} $file_array |
| 205 | - * @param {Number} $media_id |
|
| 205 | + * @param integer $media_id |
|
| 206 | 206 | * @return {Array|WP_Error} An array with information about the new file saved or a WP_Error is something went wrong. |
| 207 | 207 | */ |
| 208 | 208 | private function save_temporary_file( $file_array, $media_id ) { |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | /** |
| 278 | 278 | * Get the image from a remote url and then save it locally. |
| 279 | 279 | * |
| 280 | - * @param {Number} $media_id - media post ID |
|
| 280 | + * @param integer $media_id - media post ID |
|
| 281 | 281 | * @param {String} $url - image URL to save locally |
| 282 | 282 | * @return {Array|WP_Error} An array with information about the new file saved or a WP_Error is something went wrong. |
| 283 | 283 | */ |
@@ -257,8 +257,7 @@ discard block |
||
| 257 | 257 | /** |
| 258 | 258 | * Gets the latests field value from either the old instance or the new instance. |
| 259 | 259 | * |
| 260 | - * @param array $mixed Array of values for the new form instance. |
|
| 261 | - * @param array $mixed Array of values for the old form instance. |
|
| 260 | + * @param string $field |
|
| 262 | 261 | * @return mixed $mixed Field value. |
| 263 | 262 | */ |
| 264 | 263 | private function get_latest_field_value( $new_instance, $old_instance, $field) { |
@@ -272,6 +271,7 @@ discard block |
||
| 272 | 271 | * it returns the default values. |
| 273 | 272 | * |
| 274 | 273 | * @param int Product Post ID. |
| 274 | + * @param integer $product_post_id |
|
| 275 | 275 | * @return array $fields Product Fields from the Product Post. |
| 276 | 276 | */ |
| 277 | 277 | private function get_product_from_post( $product_post_id ) { |