-
Home
-
Discount Rules and Dynamic Pricing for WooCommerce
-
4.13.0
-
Code
-
Classes
- WCCS_Public_Cart_Discount_Hooks
Total Complexity |
45 |
Dependencies |
2 |
Dependents |
1 |
Total lines |
191 |
Lines of code |
144 |
Logical lines of code |
82 |
Comment lines |
11 |
Methods |
9 |
Properties |
1 |
Methods 9
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
get_coupon_data() |
A |
47 |
8 |
40 |
cart_totals_coupon_label() |
A |
53 |
8 |
22 |
add_discount() |
A |
54 |
8 |
21 |
maybe_remove_coupon() |
S |
58 |
7 |
15 |
cart_totals_coupon_html() |
S |
60 |
5 |
13 |
maybe_remove_coupon_message() |
S |
64 |
4 |
10 |
is_valid_for_product() |
S |
71 |
2 |
6 |
is_valid_for_cart() |
S |
71 |
2 |
6 |
__construct() |
S |
60 |
1 |
11 |