@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | * Returns the number of decimal places on string representing a price. |
271 | 271 | * |
272 | 272 | * @param string $number Price to check. |
273 | - * @return number number of decimal places. |
|
273 | + * @return null|integer number of decimal places. |
|
274 | 274 | */ |
275 | 275 | private function get_decimal_places( $number ) { |
276 | 276 | $parts = explode( '.', $number ); |
@@ -367,8 +367,7 @@ discard block |
||
367 | 367 | /** |
368 | 368 | * Gets the latests field value from either the old instance or the new instance. |
369 | 369 | * |
370 | - * @param array $mixed Array of values for the new form instance. |
|
371 | - * @param array $mixed Array of values for the old form instance. |
|
370 | + * @param string $field |
|
372 | 371 | * @return mixed $mixed Field value. |
373 | 372 | */ |
374 | 373 | private function get_latest_field_value( $new_instance, $old_instance, $field) { |
@@ -382,6 +381,7 @@ discard block |
||
382 | 381 | * it returns the default values. |
383 | 382 | * |
384 | 383 | * @param int Product Post ID. |
384 | + * @param integer $product_post_id |
|
385 | 385 | * @return array $fields Product Fields from the Product Post. |
386 | 386 | */ |
387 | 387 | private function get_product_from_post( $product_post_id ) { |