CoCart_REST_API A

Total Complexity 56
Dependencies 8
Dependents 0
Total lines 495
Lines of code 272
Logical lines of code 137
Comment lines 176
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
54 5 22
send_cache_control()
S
56 5 17
rest_api_includes()
S
45 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
cache_control()
S
59 3 13
get_v2_controllers()
S
50 1 29
__construct()
S
60 2 12
get_v1_controllers()
S
56 1 19
prevent_cache()
S
68 2 7
get_legacy_controller()
S
74 1 5
get_rest_namespaces()
S
65 1 10
user_switched()
S
81 1 3