@@ -382,7 +382,7 @@ |
||
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 |
@@ -265,7 +265,7 @@ |
||
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 |
@@ -134,7 +134,7 @@ discard block |
||
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 |
||
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 |
@@ -1239,7 +1239,7 @@ |
||
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 | */ |
@@ -628,7 +628,7 @@ |
||
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; |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | * |
286 | 286 | * @param WP_Post $post |
287 | 287 | * @param WP_REST_Request $request |
288 | - * @return bool|WP_Error |
|
288 | + * @return boolean |
|
289 | 289 | */ |
290 | 290 | protected function add_post_meta_fields( $post, $request ) { |
291 | 291 | $data = $request->get_json_params(); |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | * |
341 | 341 | * @param WP_Post $post |
342 | 342 | * @param WP_REST_Request $request |
343 | - * @return bool|WP_Error |
|
343 | + * @return boolean |
|
344 | 344 | */ |
345 | 345 | protected function update_post_meta_fields( $post, $request ) { |
346 | 346 | if ( isset( $request['amount'] ) ) { |
@@ -134,7 +134,7 @@ discard block |
||
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 |
||
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 |
@@ -1239,7 +1239,7 @@ |
||
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 | */ |