WCCS_Public_Cart_Discount_Hooks A

Total Complexity 64
Dependencies 2
Dependents 1
Total lines 239
Lines of code 183
Logical lines of code 113
Comment lines 13
Methods 9
Properties 1

Methods 9

Method Rating Maintainability Complexity Lines of code
add_discount()
B
43 20 45
get_coupon_data()
A
43 13 50
cart_totals_coupon_label()
A
53 8 22
maybe_remove_coupon()
S
58 7 15
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
62 1 10
should_apply_cart_discounts()
S
79 1 3