@@ -539,7 +539,6 @@ |
||
| 539 | 539 | /** |
| 540 | 540 | * Create or update an order shipping method. |
| 541 | 541 | * |
| 542 | - * @param $posted $shipping Item data. |
|
| 543 | 542 | * @param string $action 'create' to add shipping or 'update' to update it. |
| 544 | 543 | * @throws WC_REST_Exception Invalid data, server error. |
| 545 | 544 | */ |
@@ -597,8 +597,8 @@ discard block |
||
| 597 | 597 | * WooCommerce Order Item Meta API - Update term meta. |
| 598 | 598 | * |
| 599 | 599 | * @access public |
| 600 | - * @param mixed $item_id |
|
| 601 | - * @param mixed $meta_key |
|
| 600 | + * @param integer $item_id |
|
| 601 | + * @param string $meta_key |
|
| 602 | 602 | * @param mixed $meta_value |
| 603 | 603 | * @param string $prev_value (default: '') |
| 604 | 604 | * @return bool |
@@ -617,7 +617,7 @@ discard block |
||
| 617 | 617 | * |
| 618 | 618 | * @access public |
| 619 | 619 | * @param mixed $item_id |
| 620 | - * @param mixed $meta_key |
|
| 620 | + * @param string $meta_key |
|
| 621 | 621 | * @param mixed $meta_value |
| 622 | 622 | * @param bool $unique (default: false) |
| 623 | 623 | * @return int New row ID or 0 |
@@ -655,7 +655,7 @@ discard block |
||
| 655 | 655 | * |
| 656 | 656 | * @access public |
| 657 | 657 | * @param mixed $item_id |
| 658 | - * @param mixed $key |
|
| 658 | + * @param string $key |
|
| 659 | 659 | * @param bool $single (default: true) |
| 660 | 660 | * @return mixed |
| 661 | 661 | */ |
@@ -171,7 +171,7 @@ |
||
| 171 | 171 | |
| 172 | 172 | /** |
| 173 | 173 | * Set properties based on passed in shipping rate object. |
| 174 | - * @param WC_Shipping_Rate $tax_rate_id |
|
| 174 | + * @param WC_Shipping_Rate $shipping_rate |
|
| 175 | 175 | */ |
| 176 | 176 | public function set_shipping_rate( $shipping_rate ) { |
| 177 | 177 | $this->set_method_title( $shipping_rate->label ); |
@@ -414,6 +414,7 @@ |
||
| 414 | 414 | /** |
| 415 | 415 | * Updates status of order immediately. Order must exist. |
| 416 | 416 | * @uses WC_Order::set_status() |
| 417 | + * @param string $new_status |
|
| 417 | 418 | * @return bool success |
| 418 | 419 | */ |
| 419 | 420 | public function update_status( $new_status, $note = '', $manual = false ) { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * Default constructor. |
| 66 | - * @param int|object|array $read ID to load from the DB (optional) or already queried data. |
|
| 66 | + * @param integer $read ID to load from the DB (optional) or already queried data. |
|
| 67 | 67 | */ |
| 68 | 68 | public function __construct( $read = 0 ) { |
| 69 | 69 | $this->_default_data = $this->_data; |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | /** |
| 240 | 240 | * Delete meta data. |
| 241 | 241 | * @since 2.6.0 |
| 242 | - * @param array $key Meta key |
|
| 242 | + * @param string $key Meta key |
|
| 243 | 243 | */ |
| 244 | 244 | public function delete_meta_data( $key ) { |
| 245 | 245 | $array_keys = array_keys( wp_list_pluck( $this->_meta_data, 'key' ), $key ); |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * should be used. It is possible, but the aforementioned are preferred and are the only. |
| 97 | 97 | * methods that will be maintained going forward. |
| 98 | 98 | * |
| 99 | - * @param int|object|WC_Order $read Order to init. |
|
| 99 | + * @param integer $read Order to init. |
|
| 100 | 100 | */ |
| 101 | 101 | public function __construct( $read = 0 ) { |
| 102 | 102 | parent::__construct( $read ); |
@@ -215,6 +215,7 @@ discard block |
||
| 215 | 215 | /** |
| 216 | 216 | * Post meta update wrapper. Sets or deletes based on value. |
| 217 | 217 | * @since 2.7.0 |
| 218 | + * @param string $key |
|
| 218 | 219 | * @return bool Was it changed? |
| 219 | 220 | */ |
| 220 | 221 | protected function update_post_meta( $key, $value ) { |
@@ -1086,7 +1087,7 @@ discard block |
||
| 1086 | 1087 | * Calculate shipping total. |
| 1087 | 1088 | * |
| 1088 | 1089 | * @since 2.2 |
| 1089 | - * @return float |
|
| 1090 | + * @return string |
|
| 1090 | 1091 | */ |
| 1091 | 1092 | public function calculate_shipping() { |
| 1092 | 1093 | $shipping_total = 0; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * Constructor. |
| 53 | - * @param int|object|array $read ID to load from the DB (optional) or already queried data. |
|
| 53 | + * @param integer $read ID to load from the DB (optional) or already queried data. |
|
| 54 | 54 | */ |
| 55 | 55 | public function __construct( $read = 0 ) { |
| 56 | 56 | parent::__construct( $read ); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * Type checking |
| 71 | - * @param string|array $Type |
|
| 71 | + * @param string|array $type |
|
| 72 | 72 | * @return boolean |
| 73 | 73 | */ |
| 74 | 74 | public function is_type( $type ) { |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * Extend the abstract _data properties and then read the order object. |
| 19 | - * @param int|object|WC_Order $read Order to init. |
|
| 19 | + * @param integer $read Order to init. |
|
| 20 | 20 | */ |
| 21 | 21 | public function __construct( $read = 0 ) { |
| 22 | 22 | // Extend order data |
@@ -491,7 +491,7 @@ |
||
| 491 | 491 | /** |
| 492 | 492 | * Delete a shipping method from a zone. |
| 493 | 493 | * @param int $instance_id |
| 494 | - * @return True on success, false on failure |
|
| 494 | + * @return boolean on success, false on failure |
|
| 495 | 495 | */ |
| 496 | 496 | public function delete_shipping_method( $instance_id ) { |
| 497 | 497 | global $wpdb; |