Completed
Pull Request — master (#11030)
by Nicola
08:02
created
includes/class-wc-auth.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
 	/**
202 202
 	 * Parse file path and see if its remote or local.
203 203
 	 * @param  string $file_path
204
-	 * @return array
204
+	 * @return string
205 205
 	 */
206 206
 	public static function parse_file_path( $file_path ) {
207 207
 		$wp_uploads     = wp_upload_dir();
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-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/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/wc-core-functions.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,6 +209,7 @@  discard block
 block discarded – undo
209 209
  * Like wc_get_template, but returns the HTML instead of outputting.
210 210
  * @see wc_get_template
211 211
  * @since 2.5.0
212
+ * @param string $template_name
212 213
  */
213 214
 function wc_get_template_html( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
214 215
 	ob_start();
@@ -1227,7 +1228,7 @@  discard block
 block discarded – undo
1227 1228
 /**
1228 1229
  * Return a list of potential postcodes for wildcard searching.
1229 1230
  * @param  string $postcode
1230
- * @return array
1231
+ * @return string[]
1231 1232
  */
1232 1233
 function wc_get_wildcard_postcodes( $postcode ) {
1233 1234
 	$postcodes         = array( '*', strtoupper( $postcode ), strtoupper( $postcode ) . '*' );
@@ -1248,6 +1249,7 @@  discard block
 block discarded – undo
1248 1249
  * @param array $objects Array of postcode objects from Database
1249 1250
  * @param string $object_compare_key DB column name for the ID.
1250 1251
  * @param string $object_compare_key DB column name for the value.
1252
+ * @param string $object_id_key
1251 1253
  * @return array Array of matching object ID and values.
1252 1254
  */
1253 1255
 function wc_postcode_location_matcher( $postcode, $objects, $object_id_key, $object_compare_key ) {
Please login to merge, or discard this patch.