-
Home
-
Headless eCommerce API for Developers – CoCart
-
4.8.0 (latest)
-
Code
-
Classes
- CoCart_API_Controller
| Total Complexity |
105 |
| Dependencies |
6 |
| Dependents |
0 |
| Total lines |
1,202 |
| Lines of code |
554 |
| Logical lines of code |
238 |
| Comment lines |
506 |
| Methods |
21 |
| Properties |
2 |
Methods 21
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| validate_product() |
C |
30 |
26 |
121 |
| return_cart_contents() |
A |
40 |
15 |
57 |
| validate_variable_product() |
A |
43 |
12 |
46 |
| get_item_schema() |
A |
34 |
1 |
125 |
| validate_product_id() |
S |
55 |
5 |
20 |
| get_response() |
S |
55 |
5 |
18 |
| has_enough_stock() |
S |
56 |
5 |
16 |
| get_saved_cart() |
S |
61 |
4 |
11 |
| get_cart_in_session() |
S |
61 |
4 |
11 |
| get_variable_product_attributes() |
S |
61 |
4 |
11 |
| find_product_in_cart() |
S |
67 |
4 |
8 |
| register_routes() |
S |
50 |
1 |
38 |
| get_cart() |
S |
64 |
3 |
9 |
| get_cart_customer() |
S |
63 |
3 |
10 |
| rest_validate_quantity_arg() |
S |
71 |
3 |
6 |
| get_collection_params() |
S |
58 |
1 |
17 |
| get_permission_check() |
S |
69 |
2 |
6 |
| get_cart_contents() |
S |
73 |
2 |
4 |
| validate_quantity() |
S |
69 |
2 |
6 |
| get_variation_id_from_variation_data() |
S |
63 |
2 |
10 |
| get_cart_item() |
S |
75 |
1 |
4 |