Completed
Pull Request — master (#11011)
by Nicola
07:28
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-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/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.
includes/class-wc-shipping-zones.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,6 @@
 block discarded – undo
79 79
 	/**
80 80
 	 * Get shipping zone using it's ID
81 81
 	 * @since 2.6.0
82
-	 * @param int $zone_id
83 82
 	 * @return WC_Shipping_Meethod|bool
84 83
 	 */
85 84
 	public static function get_shipping_method( $instance_id ) {
Please login to merge, or discard this patch.
includes/abstracts/abstract-wc-settings-api.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
 	 *
175 175
 	 * @param  string $key
176 176
 	 * @param  mixed  $empty_value
177
-	 * @return mixed  The value specified for the option or a default value for the option.
177
+	 * @return string  The value specified for the option or a default value for the option.
178 178
 	 */
179 179
 	public function get_option( $key, $empty_value = null ) {
180 180
 		if ( empty( $this->settings ) ) {
Please login to merge, or discard this patch.