CoCart_API_Controller C

Total Complexity 104
Dependencies 7
Dependents 0
Total lines 1,192
Lines of code 550
Logical lines of code 236
Comment lines 504
Methods 21
Properties 2

Methods 21

Method Rating Maintainability Complexity Lines of code
validate_product()
C
30 25 118
return_cart_contents()
A
40 15 57
validate_variable_product()
A
43 12 46
get_item_schema()
A
35 1 124
validate_product_id()
S
55 5 20
get_response()
S
55 5 18
has_enough_stock()
S
56 5 16
get_cart_in_session()
S
60 4 12
get_variable_product_attributes()
S
61 4 11
get_saved_cart()
S
61 4 11
find_product_in_cart()
S
67 4 8
register_routes()
S
50 1 38
get_cart()
S
64 3 9
get_cart_customer()
S
63 3 10
rest_validate_quantity_arg()
S
71 3 6
get_collection_params()
S
58 1 17
get_variation_id_from_variation_data()
S
63 2 10
get_permission_check()
S
69 2 6
validate_quantity()
S
71 2 5
get_cart_contents()
S
73 2 4
get_cart_item()
S
75 1 4