Completed
Pull Request — master (#11665)
by James
10:48
created
includes/abstracts/abstract-wc-legacy-order.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -620,6 +620,7 @@
 block discarded – undo
620 620
 	/**
621 621
 	 * Get currency.
622 622
 	 * @deprecated 2.7.0
623
+	 * @return string
623 624
 	 */
624 625
 	public function get_order_currency() {
625 626
 		_deprecated_function( 'get_order_currency', '2.7', 'get_currency' );
Please login to merge, or discard this patch.
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/class-wc-order-item.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,6 @@  discard block
 block discarded – undo
44 44
 
45 45
 	/**
46 46
 	 * Constructor.
47
-	 * @param int|object|array $order_item ID to load from the DB (optional) or already queried data.
48 47
 	 */
49 48
 	public function __construct( $item = 0 ) {
50 49
 		if ( $item instanceof WC_Order_Item ) {
@@ -75,7 +74,7 @@  discard block
 block discarded – undo
75 74
 
76 75
 	/**
77 76
 	 * Type checking
78
-	 * @param  string|array  $Type
77
+	 * @param  string|array  $type
79 78
 	 * @return boolean
80 79
 	 */
81 80
 	public function is_type( $type ) {
Please login to merge, or discard this patch.
includes/class-wc-order.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	/**
46 46
 	 * Extend the abstract _data properties and then read the order object.
47 47
 	 *
48
-	 * @param  int|object|WC_Order $order Order to init.
48
+	 * @param  integer $order Order to init.
49 49
 	 */
50 50
 	public function __construct( $order = 0 ) {
51 51
 		$this->_data = array_merge( $this->_data, array(
@@ -379,6 +379,7 @@  discard block
 block discarded – undo
379 379
 	/**
380 380
 	 * Updates status of order immediately.
381 381
 	 * @uses WC_Order::set_status()
382
+	 * @param string $new_status
382 383
 	 */
383 384
 	public function update_status( $new_status, $note = '', $manual = false ) {
384 385
 		if ( ! $this->get_id() ) {
Please login to merge, or discard this patch.
includes/wc-order-functions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -598,7 +598,7 @@  discard block
 block discarded – undo
598 598
  *
599 599
  * @access public
600 600
  * @param mixed $item_id
601
- * @param mixed $meta_key
601
+ * @param string $meta_key
602 602
  * @param mixed $meta_value
603 603
  * @param string $prev_value (default: '')
604 604
  * @return bool
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
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
  */
Please login to merge, or discard this patch.
includes/api/class-wc-rest-products-controller.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	/**
116 116
 	 * Get post types.
117 117
 	 *
118
-	 * @return array
118
+	 * @return string[]
119 119
 	 */
120 120
 	protected function get_post_types() {
121 121
 		return array( 'product', 'product_variation' );
@@ -817,7 +817,7 @@  discard block
 block discarded – undo
817 817
 	/**
818 818
 	 * Save downloadable files.
819 819
 	 *
820
-	 * @param in $product_id
820
+	 * @param integer $product_id
821 821
 	 * @param array $downloads
822 822
 	 * @param int $variation_id
823 823
 	 */
Please login to merge, or discard this patch.
includes/abstracts/abstract-wc-rest-posts-controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
 	/**
116 116
 	 * Get post types.
117 117
 	 *
118
-	 * @return array
118
+	 * @return string[]
119 119
 	 */
120 120
 	protected function get_post_types() {
121 121
 		return array( 'product', 'product_variation' );
Please login to merge, or discard this patch.
includes/class-wc-customer.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
 	/**
103 103
 	 * Load customer data based on how WC_Customer is called.
104
-	 * @param mixed $customer WC_Customer object or customer ID is accepted.
104
+	 * @param integer $customer WC_Customer object or customer ID is accepted.
105 105
 	 * if $customer is 'new', you can build a new WC_Customer object. If it's empty, some
106 106
 	 * data will be pulled from the session for the current user/customer.
107 107
 	 */
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 	/**
156 156
 	 * Return a customer's user ID. If the current customer is logged out, this will be a session key.
157 157
 	 * @since 2.7.0
158
-	 * @return mixed
158
+	 * @return integer
159 159
 	 */
160 160
 	public function get_id() {
161 161
 		return $this->_data['id'];
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
 	/**
536 536
 	 * Set the number of orders this customer has.
537 537
 	 * @since 2.7.0
538
-	 * @param integer $order_count
538
+	 * @param integer $orders_count
539 539
 	 */
540 540
 	public function set_orders_count( $orders_count ) {
541 541
 		$this->_data['orders_count'] = $orders_count;
Please login to merge, or discard this patch.
includes/wc-template-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -341,7 +341,7 @@
 block discarded – undo
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 ) {
Please login to merge, or discard this patch.