@@ -341,7 +341,7 @@ |
||
341 | 341 | * Outputs hidden form inputs for each query string variable. |
342 | 342 | * @since 2.7.0 |
343 | 343 | * @param array $values Name value pairs. |
344 | - * @param array $exclude Keys to exclude. |
|
344 | + * @param string[] $exclude Keys to exclude. |
|
345 | 345 | * @param string $current_key Current key we are outputting. |
346 | 346 | */ |
347 | 347 | function wc_query_string_form_fields( $values = null, $exclude = array(), $current_key = '', $return = false ) { |
@@ -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 | */ |
@@ -40,7 +40,6 @@ discard block |
||
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Add a tax row to the order. |
43 | - * @param array $args |
|
44 | 43 | * @param int $tax_amount amount of tax. |
45 | 44 | * @param int $shipping_tax_amount shipping amount. |
46 | 45 | * @return int order item ID |
@@ -64,6 +63,7 @@ discard block |
||
64 | 63 | /** |
65 | 64 | * Add a shipping row to the order. |
66 | 65 | * @param WC_Shipping_Rate shipping_rate |
66 | + * @param WC_Shipping_Rate $shipping_rate |
|
67 | 67 | * @return int order item ID |
68 | 68 | */ |
69 | 69 | public function add_shipping( $shipping_rate ) { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | /** |
87 | 87 | * Add a fee to the order. |
88 | 88 | * Order must be saved prior to adding items. |
89 | - * @param object $fee |
|
89 | + * @param stdClass $fee |
|
90 | 90 | * @return int updated order item ID |
91 | 91 | */ |
92 | 92 | public function add_fee( $fee ) { |
@@ -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 ) { |