Completed
Pull Request — master (#11613)
by
unknown
08:18
created
includes/api/class-wc-rest-orders-controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -955,7 +955,7 @@
 block discarded – undo
955 955
 	 *
956 956
 	 * @param WP_REST_Request $request Full details about the request.
957 957
 	 * @param WP_Post $post Post data.
958
-	 * @return int|WP_Error
958
+	 * @return integer
959 959
 	 */
960 960
 	protected function update_order( $request, $post ) {
961 961
 		try {
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.