CoCart_REST_API A

Total Complexity 55
Dependencies 8
Dependents 0
Total lines 484
Lines of code 266
Logical lines of code 138
Comment lines 172
Methods 17
Properties 0

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
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
send_cache_control()
S
59 3 15
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