Total Complexity | 74 |
Dependencies | 3 |
Dependents | 1 |
Total lines | 281 |
Lines of code | 214 |
Logical lines of code | 125 |
Comment lines | 16 |
Methods | 11 |
Properties | 3 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
add_discount() | 44 | 16 | 46 | |
get_coupon_data() | 44 | 13 | 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 | |
cart_totals_coupon_html() | 60 | 5 | 13 | |
maybe_remove_coupon_message() | 64 | 4 | 10 | |
__construct() | 61 | 1 | 11 | |
should_apply_cart_discounts() | 79 | 1 | 3 |