From f2e34496d0611ef7aa8eb07322c9c950f4e25bed Mon Sep 17 00:00:00 2001 From: Gregory K Date: Mon, 25 Nov 2013 07:40:16 -0500 Subject: [PATCH] Corrected some PhpDocs in class-wc-cart --- includes/class-wc-cart.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/class-wc-cart.php b/includes/class-wc-cart.php index e8c02c179f7..4a5c4f22a32 100644 --- a/includes/class-wc-cart.php +++ b/includes/class-wc-cart.php @@ -264,7 +264,7 @@ class WC_Cart { * Coupons enabled function. Filterable. * * @access public - * @return void + * @return bool */ public function coupons_enabled() { return apply_filters( 'woocommerce_coupons_enabled', get_option( 'woocommerce_enable_coupons' ) == 'yes' ); @@ -345,7 +345,7 @@ class WC_Cart { /** * Looks through cart items and checks the posts are not trashed or deleted. - * @return bool or WP_ERROR + * @return bool|WP_Error */ public function check_cart_item_validity() { foreach ( $this->get_cart() as $cart_item_key => $values ) { @@ -366,7 +366,7 @@ class WC_Cart { * Looks through the cart to check each item is in stock. If not, add an error. * * @access public - * @return bool or WP_ERROR + * @return bool|WP_Error */ public function check_cart_item_stock() { global $wpdb; @@ -657,7 +657,7 @@ class WC_Cart { * Get taxes, merged by code, formatted ready for output. * * @access public - * @return void + * @return array */ public function get_tax_totals() { $taxes = $this->get_taxes(); @@ -1777,7 +1777,7 @@ class WC_Cart { * get_fees function. * * @access public - * @return void + * @return array */ public function get_fees() { return array_filter( (array) $this->fees );