Completed
Pull Request — master (#11058)
by Slobodan
08:05
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/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/abstracts/abstract-wc-shipping-method.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
 	 *
123 123
 	 * Methods should override this to declare support (or lack of support) for a feature.
124 124
 	 *
125
-	 * @param $feature string The name of a feature to test support for.
125
+	 * @param string $feature string The name of a feature to test support for.
126 126
 	 * @return bool True if the shipping method supports the feature, false otherwise.
127 127
 	 */
128 128
 	public function supports( $feature ) {
Please login to merge, or discard this patch.
includes/abstracts/abstract-wc-order.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 * should be used. It is possible, but the aforementioned are preferred and are the only.
97 97
 	 * methods that will be maintained going forward.
98 98
 	 *
99
-	 * @param  int|object|WC_Order $order Order to init.
99
+	 * @param  integer $order Order to init.
100 100
 	 */
101 101
 	public function __construct( $order = 0 ) {
102 102
 		$this->prices_include_tax    = get_option('woocommerce_prices_include_tax') == 'yes' ? true : false;
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	/**
110 110
 	 * Init/load the order object. Called from the constructor.
111 111
 	 *
112
-	 * @param  int|object|WC_Order $order Order to init.
112
+	 * @param  integer $order Order to init.
113 113
 	 */
114 114
 	protected function init( $order ) {
115 115
 		if ( is_numeric( $order ) ) {
Please login to merge, or discard this patch.
includes/abstracts/abstract-wc-data.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,8 +161,8 @@
 block discarded – undo
161 161
 	/**
162 162
 	 * Add meta data.
163 163
 	 * @since 2.7.0
164
-	 * @param array $key Meta key
165
-	 * @param array $value Meta value
164
+	 * @param string $key Meta key
165
+	 * @param string $value Meta value
166 166
 	 * @param array $unique Should this be a unique key?
167 167
 	 */
168 168
 	public function add_meta_data( $key, $value, $unique = false ) {
Please login to merge, or discard this patch.
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.