WCCS_Public_Cart_Discount_Hooks B

Total Complexity 77
Dependencies 4
Dependents 1
Total lines 289
Lines of code 222
Logical lines of code 129
Comment lines 16
Methods 11
Properties 3

Methods 11

Method Rating Maintainability Complexity Lines of code
get_coupon_data()
B
41 16 54
add_discount()
B
44 16 46
cart_totals_coupon_label()
A
53 10 20
maybe_remove_coupon()
A
56 8 19
remove_coupons()
S
61 6 14
apply_coupon()
S
57 5 17
apply_individual_use_coupon()
S
59 5 15
cart_totals_coupon_html()
S
60 5 13
maybe_remove_coupon_message()
S
64 4 10
__construct()
S
61 1 11
should_apply_cart_discounts()
S
79 1 3