-
Home
-
XT Points & Rewards for WooCommerce
-
1.2.5
-
Code
-
Classes
- XT_Module_Add_To_Cart
Total Complexity |
40 |
Dependencies |
1 |
Dependents |
0 |
Total lines |
304 |
Lines of code |
189 |
Logical lines of code |
87 |
Comment lines |
24 |
Methods |
16 |
Properties |
0 |
Methods 16
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
maybe_enable_loop_add_to_cart() |
A |
52 |
11 |
22 |
woocommerce_add_to_cart_redirect() |
S |
57 |
6 |
17 |
enqueue_assets() |
S |
47 |
4 |
43 |
get_script_vars() |
S |
49 |
3 |
29 |
body_class() |
S |
63 |
3 |
11 |
enable_ajax_add_to_cart() |
S |
74 |
2 |
4 |
cart_redirect_after_add() |
S |
74 |
2 |
4 |
add_hooks() |
S |
60 |
1 |
12 |
name() |
S |
80 |
1 |
3 |
menu_name() |
S |
80 |
1 |
3 |
ajax_add_events() |
S |
67 |
1 |
8 |
customizer_controls_assets() |
S |
64 |
1 |
10 |
customizer_sections() |
S |
66 |
1 |
9 |
customizer_fields() |
S |
76 |
1 |
4 |
cart_fragments() |
S |
69 |
1 |
6 |
single_add_to_cart() |
S |
75 |
1 |
4 |