Completed
Pull Request — master (#10520)
by Mike
11:07
created
includes/class-wc-download-handler.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/class-wc-product-factory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 
81 81
 	/**
82 82
 	 * Get the product object.
83
-	 * @param  mixed $the_product
83
+	 * @param  boolean $the_product
84 84
 	 * @uses   WP_Post
85 85
 	 * @return WP_Post|bool false on failure
86 86
 	 */
Please login to merge, or discard this patch.
includes/cli/class-wc-cli-product.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1994,7 +1994,7 @@
 block discarded – undo
1994 1994
 	 *
1995 1995
 	 * @since  2.5.0
1996 1996
 	 * @param  string $image_url
1997
-	 * @return int|WP_Error attachment id
1997
+	 * @return integer attachment id
1998 1998
 	 * @throws WC_CLI_Exception
1999 1999
 	 */
2000 2000
 	private function upload_product_image( $image_url ) {
Please login to merge, or discard this patch.
includes/wc-cart-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
  * Load the persistent cart.
45 45
  *
46 46
  * @param string $user_login
47
- * @param WP_User $user
47
+ * @param integer $user
48 48
  * @deprecated 2.3
49 49
  */
50 50
 function wc_load_persistent_cart( $user_login, $user ) {
Please login to merge, or discard this patch.
includes/wc-order-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -599,7 +599,7 @@
 block discarded – undo
599 599
  *
600 600
  * @since 2.2
601 601
  * @param array $args
602
- * @return WC_Order_Refund|WP_Error
602
+ * @return string
603 603
  */
604 604
 function wc_create_refund( $args = array() ) {
605 605
 	$default_args = array(
Please login to merge, or discard this patch.
includes/wc-term-functions.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
  * WooCommerce Term Meta API - Delete term meta.
274 274
  *
275 275
  * @param mixed $term_id
276
- * @param mixed $meta_key
276
+ * @param string $meta_key
277 277
  * @param string $meta_value (default: '')
278 278
  * @param bool $delete_all (default: false)
279 279
  * @return bool
@@ -646,7 +646,6 @@  discard block
 block discarded – undo
646 646
 
647 647
 /**
648 648
  * When a post is updated and terms recounted (called by _update_post_term_count), clear the ids.
649
- * @param int $term_id
650 649
  * @param int    $object_id  Object ID.
651 650
  * @param array  $terms      An array of object terms.
652 651
  * @param array  $tt_ids     An array of term taxonomy IDs.
Please login to merge, or discard this patch.
includes/emails/class-wc-email.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@
 block discarded – undo
284 284
 	/**
285 285
 	 * get_attachments function.
286 286
 	 *
287
-	 * @return string|array
287
+	 * @return string
288 288
 	 */
289 289
 	public function get_attachments() {
290 290
 		return apply_filters( 'woocommerce_email_attachments', array(), $this->id, $this->object );
Please login to merge, or discard this patch.
includes/wc-core-functions.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -203,6 +203,7 @@
 block discarded – undo
203 203
  * Like wc_get_template, but returns the HTML instead of outputting.
204 204
  * @see wc_get_template
205 205
  * @since 2.5.0
206
+ * @param string $template_name
206 207
  */
207 208
 function wc_get_template_html( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
208 209
 	ob_start();
Please login to merge, or discard this patch.
includes/class-wc-payment-gateways.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
 	 * Set the current, active gateway.
161 161
 	 *
162 162
 	 * @access public
163
-	 * @param array $gateway Available payment gateways.
163
+	 * @param array $gateways Available payment gateways.
164 164
 	 */
165 165
 	public function set_current_gateway( $gateways ) {
166 166
 
Please login to merge, or discard this patch.