WC_Legacy_Cart A

Total Complexity 68
Dependencies 1
Dependents 0
Total lines 426
Lines of code 248
Logical lines of code 177
Comment lines 130
Methods 24
Properties 2

Methods 24

Method Rating Maintainability Complexity Lines of code
__get()
C
33 27 91
__set()
B
42 16 54
__isset()
S
48 3 37
get_discounts_before_tax()
S
65 2 9
apply_product_discounts_after_tax()
S
80 1 3
apply_cart_discounts_after_tax()
S
80 1 3
get_order_discount_total()
S
76 1 4
coupons_enabled()
S
75 1 4
ship_to_billing_address_only()
S
75 1 4
get_checkout_url()
S
75 1 4
get_cart_url()
S
75 1 4
get_discounted_price()
S
69 1 6
remove_taxes()
S
79 1 3
init()
S
76 1 4
add_discount()
S
80 1 3
get_cart_discount_tax_total()
S
81 1 3
get_cart_discount_total()
S
81 1 3
persistent_cart_destroy()
S
92 1 1
persistent_cart_update()
S
92 1 1
get_cart_for_session()
S
92 1 1
set_session()
S
92 1 1
maybe_set_cart_cookies()
S
92 1 1
get_cart_from_session()
S
92 1 1
get_discounts_after_tax()
S
80 1 3