WCCS_Public_Cart_Discount_Hooks A

Total Complexity 74
Dependencies 2
Dependents 1
Total lines 277
Lines of code 214
Logical lines of code 130
Comment lines 13
Methods 10
Properties 1

Methods 10

Method Rating Maintainability Complexity Lines of code
add_discount()
B
44 19 45
is_valid_for_product()
A
49 13 29
get_coupon_data()
A
47 8 40
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
is_valid_for_cart()
S
60 4 13
maybe_remove_coupon_message()
S
64 4 10
__construct()
S
59 1 12