Completed
Push — master ( f47a1d...37f03f )
by Claudio
28:06
created
includes/abstracts/abstract-wc-rest-posts-controller.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 	 *
209 209
 	 * @param WP_Post $post
210 210
 	 * @param WP_REST_Request $request
211
-	 * @return bool|WP_Error
211
+	 * @return boolean
212 212
 	 */
213 213
 	protected function add_post_meta_fields( $post, $request ) {
214 214
 		return true;
@@ -670,7 +670,7 @@  discard block
 block discarded – undo
670 670
 	 *
671 671
 	 * @param WP_Post $post
672 672
 	 * @param WP_REST_Request $request
673
-	 * @return bool|WP_Error
673
+	 * @return boolean
674 674
 	 */
675 675
 	protected function update_post_meta_fields( $post, $request ) {
676 676
 		return true;
Please login to merge, or discard this patch.
includes/abstracts/abstract-wc-rest-terms-controller.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
 	 *
559 559
 	 * @param WP_Term $term
560 560
 	 * @param WP_REST_Request $request
561
-	 * @return bool|WP_Error
561
+	 * @return boolean
562 562
 	 */
563 563
 	protected function update_term_meta_fields( $term, $request ) {
564 564
 		return true;
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
 	 * Get taxonomy.
731 731
 	 *
732 732
 	 * @param WP_REST_Request $request Full details about the request.
733
-	 * @return int|WP_Error
733
+	 * @return string
734 734
 	 */
735 735
 	protected function get_taxonomy( $request ) {
736 736
 		// Check if taxonomy is defined.
Please login to merge, or discard this patch.
includes/api/class-wc-rest-authentication.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
 	 *
185 185
 	 * @param stdClass $user
186 186
 	 * @param array $params The request parameters.
187
-	 * @return null|WP_Error
187
+	 * @return stdClass
188 188
 	 */
189 189
 	private function check_oauth_signature( $user, $params ) {
190 190
 		$http_method  = strtoupper( $_SERVER['REQUEST_METHOD'] );
Please login to merge, or discard this patch.
includes/api/class-wc-rest-coupons-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/class-wc-rest-orders-controller.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
 	 * Create order.
414 414
 	 *
415 415
 	 * @param WP_REST_Request $request Full details about the request.
416
-	 * @return int|WP_Error
416
+	 * @return integer
417 417
 	 */
418 418
 	protected function create_order( $request ) {
419 419
 		wc_transaction_query( 'start' );
@@ -789,7 +789,7 @@  discard block
 block discarded – undo
789 789
 	 * 1) Only non-protected meta (no leading underscore) can be set
790 790
 	 * 2) Meta values must be scalar (int, string, bool)
791 791
 	 *
792
-	 * @param WC_Order $order Order data.
792
+	 * @param integer $order_id Order data.
793 793
 	 * @param array $meta_data Meta data in array( 'meta_key' => 'meta_value' ) format.
794 794
 	 */
795 795
 	protected function update_meta_data( $order_id, $meta_data ) {
@@ -896,7 +896,7 @@  discard block
 block discarded – undo
896 896
 	 *
897 897
 	 * @param WP_REST_Request $request Full details about the request.
898 898
 	 * @param WP_Post $post Post data.
899
-	 * @return int|WP_Error
899
+	 * @return integer
900 900
 	 */
901 901
 	protected function update_order( $request, $post ) {
902 902
 		try {
Please login to merge, or discard this patch.
includes/api/class-wc-rest-product-attributes-controller.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -470,7 +470,6 @@  discard block
 block discarded – undo
470 470
 	 * Prepare links for the request.
471 471
 	 *
472 472
 	 * @param object $attribute Attribute object.
473
-	 * @param WP_REST_Request $request Full details about the request.
474 473
 	 * @return array Links for the given attribute.
475 474
 	 */
476 475
 	protected function prepare_links( $attribute ) {
@@ -562,7 +561,7 @@  discard block
 block discarded – undo
562 561
 	 * Get attribute name.
563 562
 	 *
564 563
 	 * @param WP_REST_Request $request Full details about the request.
565
-	 * @return int|WP_Error
564
+	 * @return string
566 565
 	 */
567 566
 	protected function get_taxonomy( $request ) {
568 567
 		if ( '' !== $this->attribute ) {
Please login to merge, or discard this patch.
includes/api/class-wc-rest-webhooks-controller.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -380,7 +380,6 @@
 block discarded – undo
380 380
 	/**
381 381
 	 * Prepare a single webhook output for response.
382 382
 	 *
383
-	 * @param WP_Post $webhook Webhook object.
384 383
 	 * @param WP_REST_Request $request Request object.
385 384
 	 * @return WP_REST_Response $response Response data.
386 385
 	 */
Please login to merge, or discard this patch.
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.