Total Complexity | 27 |
Dependencies | 3 |
Dependents | 1 |
Total lines | 329 |
Lines of code | 168 |
Logical lines of code | 102 |
Comment lines | 113 |
Methods | 9 |
Properties | 5 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
validate_coupon() | 46 | 8 | 44 | |
delete_coupon() | 54 | 3 | 21 | |
update_coupon_usage_count() | 56 | 3 | 17 | |
apply_discount() | 49 | 2 | 32 | |
ajax_init_form_submission() | 56 | 3 | 17 | |
apply_coupon() | 58 | 2 | 16 | |
get_coupon_id() | 67 | 3 | 8 | |
instance() | 71 | 2 | 6 | |
__construct() | 68 | 1 | 7 |