Completed
Pull Request — master (#9826)
by Mike
14:08
created
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.
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/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/class-wc-shipping-zones.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 	/**
83 83
 	 * Get shipping zone using it's ID
84 84
 	 * @since 2.6.0
85
-	 * @param int $zone_id
85
+	 * @param integer $instance_id
86 86
 	 * @return WC_Shipping_Meethod|bool
87 87
 	 */
88 88
 	public static function get_shipping_method( $instance_id ) {
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/class-wc-cart.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1058,7 +1058,7 @@
 block discarded – undo
1058 1058
 		 * Set the quantity for an item in the cart.
1059 1059
 		 *
1060 1060
 		 * @param string	$cart_item_key	contains the id of the cart item
1061
-		 * @param string	$quantity		contains the quantity of the item
1061
+		 * @param integer	$quantity		contains the quantity of the item
1062 1062
 		 * @param bool      $refresh_totals	whether or not to calculate totals after setting the new qty
1063 1063
 		 *
1064 1064
 		 * @return bool
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.
includes/class-wc-shipping-rate.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,6 @@
 block discarded – undo
87 87
 	/**
88 88
 	 * Get all meta data for this rate.
89 89
 	 * @since 2.6.0
90
-	 * @param string $key
91
-	 * @param string $value
92 90
 	 */
93 91
 	public function get_meta_data() {
94 92
 		return $this->meta_data;
Please login to merge, or discard this patch.