WCCS_Public_Cart_Discount_Hooks B

Total Complexity 100
Dependencies 4
Dependents 1
Total lines 386
Lines of code 301
Logical lines of code 174
Comment lines 18
Methods 14
Properties 3

Methods 14

Method Rating Maintainability Complexity Lines of code
get_coupon_data()
B
40 17 60
add_discount()
B
44 16 46
cart_totals_coupon_label()
A
52 11 23
get_manual_coupon_data()
A
50 9 28
maybe_remove_coupon()
A
54 9 22
remove_coupons()
A
54 8 23
apply_coupon()
S
57 5 17
cart_totals_coupon_html()
S
59 5 15
apply_individual_use_coupon()
S
59 5 15
maybe_remove_coupon_message()
S
61 5 13
maybe_remove_coupon_zero_value()
S
60 4 13
coupon_is_valid()
S
63 4 11
__construct()
S
60 1 12
should_apply_cart_discounts()
S
79 1 3