-
Home
-
Propoza for WooCommerce
-
2.1.2 (latest)
-
Code
-
Classes
- WC_REST_Propoza_Controller
Total Complexity |
54 |
Dependencies |
5 |
Dependents |
1 |
Total lines |
461 |
Lines of code |
280 |
Logical lines of code |
117 |
Comment lines |
106 |
Methods |
14 |
Properties |
2 |
Methods 14
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
add_to_cart() |
A |
46 |
12 |
35 |
validate_add_to_cart_product() |
A |
42 |
10 |
56 |
add_items_to_cart() |
S |
48 |
6 |
35 |
get_cart() |
S |
51 |
5 |
25 |
get_cart_contents_count() |
S |
61 |
4 |
11 |
validate_product_id() |
S |
59 |
3 |
16 |
validate_product() |
S |
64 |
3 |
11 |
clear_cart() |
S |
53 |
2 |
22 |
add_customer() |
S |
60 |
2 |
13 |
calculate_totals() |
S |
61 |
2 |
13 |
register_routes() |
S |
55 |
1 |
22 |
validate_quantity() |
S |
65 |
2 |
9 |
generateCartCookie() |
S |
64 |
1 |
8 |
get_totals() |
S |
77 |
1 |
4 |