Completed
Pull Request — master (#24892)
by Claudio
08:16
created
includes/class-wc-cart.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -958,7 +958,7 @@  discard block
 block discarded – undo
958 958
 	 * (tax is shown after coupons).
959 959
 	 *
960 960
 	 * @since 2.6.0
961
-	 * @return string
961
+	 * @return double
962 962
 	 */
963 963
 	public function get_displayed_subtotal() {
964 964
 		return $this->display_prices_including_tax() ? $this->get_subtotal() + $this->get_subtotal_tax() : $this->get_subtotal();
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
 	 *
970 970
 	 * Cart item key will be unique based on the item and its properties, such as variations.
971 971
 	 *
972
-	 * @param mixed $cart_id id of product to find in the cart.
972
+	 * @param string $cart_id id of product to find in the cart.
973 973
 	 * @return string cart item key
974 974
 	 */
975 975
 	public function find_product_in_cart( $cart_id = false ) {
@@ -1029,7 +1029,7 @@  discard block
 block discarded – undo
1029 1029
 	 * @param int   $variation_id ID of the variation being added to the cart.
1030 1030
 	 * @param array $variation attribute values.
1031 1031
 	 * @param array $cart_item_data extra cart item data we want to pass into the item.
1032
-	 * @return string|bool $cart_item_key
1032
+	 * @return false|string $cart_item_key
1033 1033
 	 */
1034 1034
 	public function add_to_cart( $product_id = 0, $quantity = 1, $variation_id = 0, $variation = array(), $cart_item_data = array() ) {
1035 1035
 		try {
Please login to merge, or discard this patch.
includes/class-wc-session-handler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -242,7 +242,7 @@
 block discarded – undo
242 242
 	 * When a user is logged out, ensure they have a unique nonce by using the customer/session ID.
243 243
 	 *
244 244
 	 * @param int $uid User ID.
245
-	 * @return string
245
+	 * @return integer
246 246
 	 */
247 247
 	public function nonce_user_logged_out( $uid ) {
248 248
 		return $this->has_session() && $this->_customer_id ? $this->_customer_id : $uid;
Please login to merge, or discard this patch.
includes/class-wc-background-emailer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 	 * item from the queue.
52 52
 	 *
53 53
 	 * @param array $callback Update callback function.
54
-	 * @return mixed
54
+	 * @return boolean
55 55
 	 */
56 56
 	protected function task( $callback ) {
57 57
 		if ( isset( $callback['filter'], $callback['args'] ) ) {
Please login to merge, or discard this patch.
includes/wc-order-functions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
  * @param  int|WC_Product $product     Product instance or ID.
343 343
  * @param  WC_Order       $order       Order data.
344 344
  * @param  int            $qty         Quantity purchased.
345
- * @return int|bool insert id or false on failure.
345
+ * @return integer insert id or false on failure.
346 346
  */
347 347
 function wc_downloadable_file_permission( $download_id, $product, $order, $qty = 1 ) {
348 348
 	if ( is_numeric( $product ) ) {
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
 /**
410 410
  * Clear all transients cache for order data.
411 411
  *
412
- * @param int|WC_Order $order Order instance or ID.
412
+ * @param integer $order Order instance or ID.
413 413
  */
414 414
 function wc_delete_shop_order_transients( $order = 0 ) {
415 415
 	if ( is_numeric( $order ) ) {
Please login to merge, or discard this patch.
includes/data-stores/class-wc-shipping-zone-data-store.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -304,7 +304,7 @@
 block discarded – undo
304 304
 	 *
305 305
 	 * @param WC_Shipping_Zone $zone Shipping zone object.
306 306
 	 *
307
-	 * @return bool|void
307
+	 * @return false|null
308 308
 	 */
309 309
 	private function save_locations( &$zone ) {
310 310
 		$changed_props = array_keys( $zone->get_changes() );
Please login to merge, or discard this patch.
includes/class-wc-cart-totals.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 	 * Get default blank set of props used per fee.
170 170
 	 *
171 171
 	 * @since  3.2.0
172
-	 * @return array
172
+	 * @return string
173 173
 	 */
174 174
 	protected function get_default_fee_props() {
175 175
 		return (object) array(
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
 	 * @since  3.2.0
518 518
 	 * @param  string $key Total to get.
519 519
 	 * @param  bool   $in_cents Should the totals be returned in cents, or without precision.
520
-	 * @return int|float
520
+	 * @return string
521 521
 	 */
522 522
 	public function get_total( $key = 'total', $in_cents = false ) {
523 523
 		$totals = $this->get_totals( $in_cents );
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
 	 *
552 552
 	 * @since 3.2.0
553 553
 	 * @param  bool         $in_cents If returned value should be in cents.
554
-	 * @param  array|string $types    Types to merge and return. Defaults to all.
554
+	 * @param  string $types    Types to merge and return. Defaults to all.
555 555
 	 * @return array
556 556
 	 */
557 557
 	protected function get_merged_taxes( $in_cents = false, $types = array( 'items', 'fees', 'shipping' ) ) {
Please login to merge, or discard this patch.
includes/class-wc-customer-download.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 	/**
44 44
 	 * Constructor.
45 45
 	 *
46
-	 * @param int|object|array $download Download ID, instance or data.
46
+	 * @param integer $download Download ID, instance or data.
47 47
 	 */
48 48
 	public function __construct( $download = 0 ) {
49 49
 		parent::__construct( $download );
Please login to merge, or discard this patch.
includes/class-wc-customer.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	 * If $customer is 'new', you can build a new WC_Customer object. If it's empty, some
84 84
 	 * data will be pulled from the session for the current user/customer.
85 85
 	 *
86
-	 * @param WC_Customer|int $data       Customer ID or data.
86
+	 * @param integer $data       Customer ID or data.
87 87
 	 * @param bool            $is_session True if this is the customer session.
88 88
 	 * @throws Exception If customer cannot be read/found and $data is set.
89 89
 	 */
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 	/**
227 227
 	 * Is customer VAT exempt?
228 228
 	 *
229
-	 * @return bool
229
+	 * @return string
230 230
 	 */
231 231
 	public function is_vat_exempt() {
232 232
 		return $this->get_is_vat_exempt();
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 	/**
236 236
 	 * Has calculated shipping?
237 237
 	 *
238
-	 * @return bool
238
+	 * @return string
239 239
 	 */
240 240
 	public function has_calculated_shipping() {
241 241
 		return $this->get_calculated_shipping();
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 	 * Get if customer is VAT exempt?
246 246
 	 *
247 247
 	 * @since 3.0.0
248
-	 * @return bool
248
+	 * @return string
249 249
 	 */
250 250
 	public function get_is_vat_exempt() {
251 251
 		return $this->is_vat_exempt;
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 	/**
264 264
 	 * Has customer calculated shipping?
265 265
 	 *
266
-	 * @return bool
266
+	 * @return string
267 267
 	 */
268 268
 	public function get_calculated_shipping() {
269 269
 		return $this->calculated_shipping;
Please login to merge, or discard this patch.
includes/class-wc-data-store.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 	/**
112 112
 	 * Only store the object type to avoid serializing the data store instance.
113 113
 	 *
114
-	 * @return array
114
+	 * @return string[]
115 115
 	 */
116 116
 	public function __sleep() {
117 117
 		return array( 'object_type' );
Please login to merge, or discard this patch.