Completed
Push — master ( f47a1d...37f03f )
by Claudio
28:06
created
includes/api/legacy/v1/class-wc-api-customers.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -447,10 +447,10 @@
 block discarded – undo
447 447
 	 *
448 448
 	 * @since 2.1
449 449
 	 * @see WC_API_Resource::validate_request()
450
-	 * @param string|int $id the customer ID
450
+	 * @param integer $id the customer ID
451 451
 	 * @param string $type the request type, unused because this method overrides the parent class
452 452
 	 * @param string $context the context of the request, either `read`, `edit` or `delete`
453
-	 * @return int|WP_Error valid user ID or WP_Error if any of the checks fails
453
+	 * @return integer valid user ID or WP_Error if any of the checks fails
454 454
 	 */
455 455
 	protected function validate_request( $id, $type, $context ) {
456 456
 
Please login to merge, or discard this patch.
includes/api/legacy/v1/class-wc-api-orders.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -382,7 +382,7 @@
 block discarded – undo
382 382
 	 *
383 383
 	 * @since 2.1
384 384
 	 * @param WC_Order $order
385
-	 * @return float
385
+	 * @return integer
386 386
 	 */
387 387
 	private function get_order_subtotal( $order ) {
388 388
 
Please login to merge, or discard this patch.
includes/api/legacy/v1/class-wc-api-products.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@
 block discarded – undo
265 265
 	 *
266 266
 	 * @since 2.1
267 267
 	 * @param WC_Product $product
268
-	 * @return array
268
+	 * @return WC_Product
269 269
 	 */
270 270
 	private function get_product_data( $product ) {
271 271
 
Please login to merge, or discard this patch.
includes/api/legacy/v2/class-wc-api-customers.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	 *
135 135
 	 * @since 2.1
136 136
 	 * @param int $id the customer ID
137
-	 * @param array $fields
137
+	 * @param string $fields
138 138
 	 * @return array
139 139
 	 */
140 140
 	public function get_customer( $id, $fields = null ) {
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
 	 * @param integer $id the customer ID
715 715
 	 * @param string $type the request type, unused because this method overrides the parent class
716 716
 	 * @param string $context the context of the request, either `read`, `edit` or `delete`
717
-	 * @return int|WP_Error valid user ID or WP_Error if any of the checks fails
717
+	 * @return integer valid user ID or WP_Error if any of the checks fails
718 718
 	 */
719 719
 	protected function validate_request( $id, $type, $context ) {
720 720
 
Please login to merge, or discard this patch.
includes/api/legacy/v2/class-wc-api-orders.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1193,7 +1193,7 @@
 block discarded – undo
1193 1193
 	 * Get the admin order notes for an order
1194 1194
 	 *
1195 1195
 	 * @since 2.1
1196
-	 * @param string $order_id order ID
1196
+	 * @param integer $order_id order ID
1197 1197
 	 * @param string|null $fields fields to include in response
1198 1198
 	 * @return array
1199 1199
 	 */
Please login to merge, or discard this patch.
includes/api/legacy/v3/class-wc-api-customers.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	 *
135 135
 	 * @since 2.1
136 136
 	 * @param int $id the customer ID
137
-	 * @param array $fields
137
+	 * @param string $fields
138 138
 	 * @return array
139 139
 	 */
140 140
 	public function get_customer( $id, $fields = null ) {
@@ -703,7 +703,7 @@  discard block
 block discarded – undo
703 703
 	 * @param integer $id the customer ID
704 704
 	 * @param string $type the request type, unused because this method overrides the parent class
705 705
 	 * @param string $context the context of the request, either `read`, `edit` or `delete`
706
-	 * @return int|WP_Error valid user ID or WP_Error if any of the checks fails
706
+	 * @return integer valid user ID or WP_Error if any of the checks fails
707 707
 	 */
708 708
 	protected function validate_request( $id, $type, $context ) {
709 709
 
Please login to merge, or discard this patch.
includes/api/legacy/v3/class-wc-api-orders.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1239,7 +1239,7 @@
 block discarded – undo
1239 1239
 	 * Get the admin order notes for an order
1240 1240
 	 *
1241 1241
 	 * @since 2.1
1242
-	 * @param string $order_id order ID
1242
+	 * @param integer $order_id order ID
1243 1243
 	 * @param string|null $fields fields to include in response
1244 1244
 	 * @return array
1245 1245
 	 */
Please login to merge, or discard this patch.
includes/wc-user-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -628,7 +628,7 @@
 block discarded – undo
628 628
  *
629 629
  * @since 2.6.0
630 630
  * @param int $customer_id Customer ID.
631
- * @return WC_Order|bool Order object if successful or false.
631
+ * @return WC_Order Order object if successful or false.
632 632
  */
633 633
 function wc_get_customer_last_order( $customer_id ) {
634 634
 	global $wpdb;
Please login to merge, or discard this patch.