Completed
Push — master ( 09e43c...a8e479 )
by Mike
11:28
created
includes/abstracts/abstract-wc-order.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	 * should be used. It is possible, but the aforementioned are preferred and are the only.
83 83
 	 * methods that will be maintained going forward.
84 84
 	 *
85
-	 * @param  int|object|WC_Order $order Order to init.
85
+	 * @param  integer $order Order to init.
86 86
 	 */
87 87
 	public function __construct( $order = 0 ) {
88 88
 		if ( is_numeric( $order ) && $order > 0 ) {
@@ -199,6 +199,7 @@  discard block
 block discarded – undo
199 199
 	/**
200 200
 	 * Post meta update wrapper. Sets or deletes based on value.
201 201
 	 * @since 2.7.0
202
+	 * @param string $key
202 203
 	 * @return bool Was it changed?
203 204
 	 */
204 205
 	protected function update_post_meta( $key, $value ) {
@@ -1092,7 +1093,7 @@  discard block
 block discarded – undo
1092 1093
 	 * Calculate shipping total.
1093 1094
 	 *
1094 1095
 	 * @since 2.2
1095
-	 * @return float
1096
+	 * @return string
1096 1097
 	 */
1097 1098
 	public function calculate_shipping() {
1098 1099
 		$shipping_total = 0;
Please login to merge, or discard this patch.
includes/abstracts/abstract-wc-legacy-order.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 ) {
Please login to merge, or discard this patch.
includes/class-wc-order-item-shipping.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
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 );
Please login to merge, or discard this patch.