Completed
Pull Request — master (#10805)
by Nicola
14:49
created
includes/class-wc-countries.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 	/**
65 65
 	 * Get continent code for a country code.
66 66
 	 * @since 2.6.0
67
-	 * @param $cc string
67
+	 * @param string $cc string
68 68
 	 * @return string
69 69
 	 */
70 70
 	public function get_continent_code_for_country( $cc ) {
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/admin/class-wc-admin-taxonomies.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/wc-conditional-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -361,7 +361,7 @@
 block discarded – undo
361 361
  * Check if the home URL is https. If it is, we don't need to do things such as 'force ssl'.
362 362
  *
363 363
  * @since  2.4.13
364
- * @return bool
364
+ * @return string
365 365
  */
366 366
 function wc_site_is_https() {
367 367
 	return strstr( get_option( 'home' ), 'https:' );
Please login to merge, or discard this patch.
woocommerce.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -204,6 +204,7 @@
 block discarded – undo
204 204
 	 * What type of request is this?
205 205
 	 * string $type ajax, frontend or admin.
206 206
 	 *
207
+	 * @param string $type
207 208
 	 * @return bool
208 209
 	 */
209 210
 	private function is_request( $type ) {
Please login to merge, or discard this patch.
includes/widgets/class-wc-widget-layered-nav.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -251,6 +251,7 @@
 block discarded – undo
251 251
 
252 252
 	/**
253 253
 	 * Get current page URL for layered nav items.
254
+	 * @param string $taxonomy
254 255
 	 * @return string
255 256
 	 */
256 257
 	protected function get_page_base_url( $taxonomy ) {
Please login to merge, or discard this patch.
includes/abstracts/abstract-wc-payment-gateway.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@
 block discarded – undo
307 307
 	 * @param  int $order_id
308 308
 	 * @param  float $amount
309 309
 	 * @param  string $reason
310
-	 * @return bool|WP_Error True or false based on success, or a WP_Error object.
310
+	 * @return boolean True or false based on success, or a WP_Error object.
311 311
 	 */
312 312
 	public function process_refund( $order_id, $amount = null, $reason = '' ) {
313 313
 		return false;
Please login to merge, or discard this patch.
includes/class-wc-payment-tokens.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 	 * Returns an array of payment token objects associated with the passed customer ID
22 22
 	 * @since 2.6.0
23 23
 	 * @param  int    $customer_id  Customer ID
24
-	 * @param  string $gateway      Optional Gateway ID for getting tokens for a specific gateway
24
+	 * @param  string $gateway_id      Optional Gateway ID for getting tokens for a specific gateway
25 25
 	 * @return array                Array of token objects
26 26
 	 */
27 27
 	public static function get_customer_tokens( $customer_id, $gateway_id = '' ) {
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.