Completed
Push — master ( 37f03f...a60b03 )
by Mike
26:40
created
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/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.
includes/abstracts/abstract-wc-rest-posts-controller.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'] ) ) {
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 ) {
@@ -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/v2/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.