-
Home
-
Headless WooCommerce Made Easy with CoCart
-
4.3.28
-
Code
-
Classes
- CoCart_REST_API
Total Complexity |
53 |
Dependencies |
8 |
Dependents |
0 |
Total lines |
570 |
Lines of code |
290 |
Logical lines of code |
151 |
Comment lines |
231 |
Methods |
17 |
Properties |
2 |
Methods 17
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
set_cache_control_headers() |
A |
40 |
15 |
56 |
has_user_switched() |
S |
53 |
5 |
23 |
initialize_session() |
S |
60 |
5 |
13 |
prevent_routes_from_initializing() |
S |
57 |
3 |
17 |
register_rest_routes() |
S |
64 |
4 |
10 |
rest_api_includes() |
S |
46 |
1 |
45 |
maybe_load_cart() |
S |
62 |
3 |
13 |
initialize_customer() |
S |
67 |
3 |
7 |
prevent_cache() |
S |
64 |
3 |
10 |
initialize_cart() |
S |
72 |
3 |
5 |
get_v2_controllers() |
S |
50 |
1 |
29 |
__construct() |
S |
62 |
2 |
11 |
get_v1_controllers() |
S |
56 |
1 |
19 |
initialize_cart_session() |
S |
60 |
1 |
13 |
get_cacheable_route_patterns() |
S |
73 |
1 |
6 |
get_rest_namespaces() |
S |
67 |
1 |
9 |
user_switched() |
S |
74 |
1 |
4 |