-
Home
-
Headless WooCommerce Made Easy with CoCart
-
4.3.6
-
Code
-
Classes
- CoCart_REST_API
Total Complexity |
47 |
Dependencies |
6 |
Dependents |
0 |
Total lines |
546 |
Lines of code |
267 |
Logical lines of code |
133 |
Comment lines |
237 |
Methods |
18 |
Properties |
2 |
Methods 18
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
has_user_switched() |
S |
53 |
5 |
23 |
send_cache_control() |
S |
55 |
5 |
20 |
initialize_session() |
S |
60 |
5 |
13 |
cache_control() |
S |
57 |
4 |
16 |
prevent_routes_from_initializing() |
S |
57 |
3 |
17 |
rest_api_includes() |
S |
46 |
1 |
45 |
register_rest_routes() |
S |
64 |
4 |
10 |
maybe_load_cart() |
S |
62 |
3 |
13 |
prevent_cache() |
S |
64 |
3 |
10 |
initialize_customer() |
S |
67 |
3 |
7 |
initialize_cart() |
S |
72 |
3 |
5 |
get_v2_controllers() |
S |
50 |
1 |
29 |
__construct() |
S |
61 |
2 |
12 |
get_v1_controllers() |
S |
56 |
1 |
19 |
user_switched() |
S |
74 |
1 |
4 |
initialize_cart_session() |
S |
65 |
1 |
9 |
get_rest_namespaces() |
S |
67 |
1 |
9 |
allowed_regex_pattern_routes_to_cache() |
S |
73 |
1 |
6 |