Completed
Pull Request — master (#11056)
by Shiva
14:01
created
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/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/class-wc-rest-orders-controller.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
 	 * Create order.
424 424
 	 *
425 425
 	 * @param WP_REST_Request $request Full details about the request.
426
-	 * @return int|WP_Error
426
+	 * @return integer
427 427
 	 */
428 428
 	protected function create_order( $request ) {
429 429
 		wc_transaction_query( 'start' );
@@ -799,7 +799,7 @@  discard block
 block discarded – undo
799 799
 	 * 1) Only non-protected meta (no leading underscore) can be set
800 800
 	 * 2) Meta values must be scalar (int, string, bool)
801 801
 	 *
802
-	 * @param WC_Order $order Order data.
802
+	 * @param integer $order_id Order data.
803 803
 	 * @param array $meta_data Meta data in array( 'meta_key' => 'meta_value' ) format.
804 804
 	 */
805 805
 	protected function update_meta_data( $order_id, $meta_data ) {
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
 	 *
907 907
 	 * @param WP_REST_Request $request Full details about the request.
908 908
 	 * @param WP_Post $post Post data.
909
-	 * @return int|WP_Error
909
+	 * @return integer
910 910
 	 */
911 911
 	protected function update_order( $request, $post ) {
912 912
 		try {
@@ -1066,7 +1066,6 @@  discard block
 block discarded – undo
1066 1066
 	 *
1067 1067
 	 * @since 2.6.0
1068 1068
 	 * @param array $args Order args.
1069
-	 * @param WP_REST_Request $request Full details about the request.
1070 1069
 	 * @return WC_Order
1071 1070
 	 */
1072 1071
 	protected function create_base_order( $args, $data ) {
Please login to merge, or discard this patch.