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 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
get_coupon_data() | 41 | 16 | 54 | |
add_discount() | 44 | 16 | 46 | |
cart_totals_coupon_label() | 53 | 10 | 20 | |
maybe_remove_coupon() | 56 | 8 | 19 | |
remove_coupons() | 61 | 6 | 14 | |
apply_coupon() | 57 | 5 | 17 | |
apply_individual_use_coupon() | 59 | 5 | 15 | |
maybe_remove_coupon_zero_value() | 60 | 4 | 13 | |
cart_totals_coupon_html() | 61 | 4 | 12 | |
maybe_remove_coupon_message() | 64 | 4 | 10 | |
__construct() | 61 | 1 | 11 | |
should_apply_cart_discounts() | 79 | 1 | 3 |