Total Complexity | 79 |
Dependencies | 4 |
Dependents | 0 |
Total lines | 644 |
Lines of code | 391 |
Logical lines of code | 161 |
Comment lines | 137 |
Methods | 14 |
Properties | 0 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
get_discount_for_redeeming_points() | 38 | 22 | 61 | |
render_redeem_points_message() | 31 | 9 | 182 | |
get_points_earned_for_purchase() | 48 | 10 | 29 | |
maybe_apply_discount() | 60 | 6 | 12 | |
get_points_earned_for_order_received() | 61 | 6 | 11 | |
is_fully_discounted() | 65 | 5 | 9 | |
ajax_maybe_apply_discount() | 60 | 4 | 12 | |
render_thank_you_message() | 58 | 3 | 15 | |
points_last() | 62 | 3 | 12 | |
render_earn_points_message() | 61 | 3 | 12 | |
discount_removed() | 68 | 3 | 8 | |
coupon_label() | 70 | 2 | 6 | |
calculate_discount_modifier() | 64 | 2 | 9 | |
__construct() | 60 | 1 | 13 |