-
Home
-
Headless WooCommerce Made Easy with CoCart
-
3.10.4
-
Code
-
Classes
- CoCart_REST_API
Total Complexity |
56 |
Dependencies |
8 |
Dependents |
0 |
Total lines |
491 |
Lines of code |
266 |
Logical lines of code |
138 |
Comment lines |
177 |
Methods |
17 |
Properties |
1 |
Methods 17
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
maybe_load_cart() |
A |
55 |
9 |
21 |
cocart_key_header() |
S |
55 |
7 |
19 |
has_user_switched() |
S |
58 |
5 |
15 |
__construct() |
S |
56 |
4 |
18 |
rest_api_includes() |
S |
44 |
2 |
48 |
send_cache_control() |
S |
58 |
4 |
15 |
initialize_cart() |
S |
63 |
5 |
10 |
prevent_routes_from_initializing() |
S |
57 |
3 |
17 |
register_rest_routes() |
S |
64 |
4 |
10 |
initialize_session() |
S |
63 |
4 |
10 |
get_v2_controllers() |
S |
50 |
1 |
29 |
get_v1_controllers() |
S |
56 |
1 |
19 |
prevent_cache() |
S |
68 |
2 |
7 |
cache_control() |
S |
63 |
2 |
10 |
get_legacy_controller() |
S |
74 |
1 |
5 |
get_rest_namespaces() |
S |
65 |
1 |
10 |
user_switched() |
S |
81 |
1 |
3 |