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