WCCS_Public_Cart_Discount_Hooks B

Total Complexity 80
Dependencies 4
Dependents 1
Total lines 304
Lines of code 234
Logical lines of code 134
Comment lines 16
Methods 12
Properties 3

Methods 12

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
maybe_remove_coupon_zero_value()
S
60 4 13
cart_totals_coupon_html()
S
61 4 12
maybe_remove_coupon_message()
S
64 4 10
__construct()
S
61 1 11
should_apply_cart_discounts()
S
79 1 3