Completed
Pull Request — master (#10259)
by Mike
08:16
created
includes/abstracts/abstract-wc-order.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 	 * should be used. It is possible, but the aforementioned are preferred and are the only.
65 65
 	 * methods that will be maintained going forward.
66 66
 	 *
67
-	 * @param  int|object|WC_Order $order Order to init.
67
+	 * @param  integer $order Order to init.
68 68
 	 */
69 69
 	public function __construct( $order = 0 ) {
70 70
 		if ( is_numeric( $order ) && $order > 0 ) {
@@ -192,6 +192,7 @@  discard block
 block discarded – undo
192 192
 	/**
193 193
 	 * Post meta update wrapper. Sets or deletes based on value.
194 194
 	 * @since 2.6.0
195
+	 * @param string $key
195 196
 	 */
196 197
 	protected function update_post_meta( $key, $value ) {
197 198
 		if ( '' !== $value ) {
@@ -341,7 +342,6 @@  discard block
 block discarded – undo
341 342
 
342 343
 	/**
343 344
 	 * Add meta data.
344
-	 * @param array $data Key/Value pairs
345 345
 	 */
346 346
 	public function add_meta_data( $key, $value, $unique = false ) {
347 347
 		if ( $unique ) {
@@ -1204,7 +1204,7 @@  discard block
 block discarded – undo
1204 1204
 	 * Calculate shipping total.
1205 1205
 	 *
1206 1206
 	 * @since 2.2
1207
-	 * @return float
1207
+	 * @return string
1208 1208
 	 */
1209 1209
 	public function calculate_shipping() {
1210 1210
 		$shipping_total = 0;
Please login to merge, or discard this patch.
includes/class-wc-order-item.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,6 @@  discard block
 block discarded – undo
36 36
 
37 37
 	/**
38 38
 	 * Constructor.
39
-	 * @param int|object|array $order_item ID to load from the DB (optional) or already queried data.
40 39
 	 */
41 40
 	public function __construct( $item = 0 ) {
42 41
 		if ( $item instanceof WC_Order_Item ) {
@@ -79,7 +78,7 @@  discard block
 block discarded – undo
79 78
 
80 79
 	/**
81 80
 	 * Type checking
82
-	 * @param  string|array  $Type
81
+	 * @param  string|array  $type
83 82
 	 * @return boolean
84 83
 	 */
85 84
 	public function is_type( $type ) {
@@ -392,7 +391,6 @@  discard block
 block discarded – undo
392 391
 
393 392
 	/**
394 393
 	 * Add meta data.
395
-	 * @param array $data Key/Value pairs
396 394
 	 */
397 395
 	public function add_meta_data( $key, $value, $unique = false ) {
398 396
 		if ( $unique ) {
Please login to merge, or discard this patch.
includes/class-wc-order-refund.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
 	/**
110 110
 	 * Init/load the order object. Called from the constructor.
111 111
 	 *
112
-	 * @param  int|object|WC_Order $order Order to init.
112
+	 * @param  integer $order Order to init.
113 113
 	 */
114 114
 	protected function init( $order ) {
115 115
 		if ( is_numeric( $order ) ) {
Please login to merge, or discard this patch.
includes/class-wc-order.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	/**
27 27
 	 * Extend the abstract _data properties and then read the order object.
28 28
 	 *
29
-	 * @param  int|object|WC_Order $order Order to init.
29
+	 * @param  integer $order Order to init.
30 30
 	 */
31 31
 	public function __construct( $order = 0 ) {
32 32
 		$this->_data = array_merge( $this->_data, array(
@@ -308,7 +308,6 @@  discard block
 block discarded – undo
308 308
 	 * @since 2.6.0
309 309
 	 * @param string $new_status Status to change the order to. No internal wc- prefix is required.
310 310
 	 * @param string $note (default: '') Optional note to add.
311
-	 * @param bool $manual is this a manual order status change?
312 311
 	 * @param array details of change
313 312
 	 */
314 313
 	public function set_status( $new_status, $note = '', $manual_update = false ) {
@@ -948,6 +947,7 @@  discard block
 block discarded – undo
948 947
 
949 948
 	/**
950 949
 	 * See if order matches cart_hash.
950
+	 * @param string $cart_hash
951 951
 	 * @return bool
952 952
 	 */
953 953
 	public function has_cart_hash( $cart_hash ) {
Please login to merge, or discard this patch.