WC_REST_Product_Variations_Controller C

Total Complexity 106
Dependencies 7
Dependents 0
Total lines 1,090
Lines of code 850
Logical lines of code 210
Comment lines 153
Methods 10
Properties 1

Methods 10

Method Rating Maintainability Complexity Lines of code
prepare_object_for_database()
D
25
49 141
prepare_objects_query()
C
30 26 126
get_item_schema()
B
22
1 351
set_variation_image()
A
48 9 33
prepare_object_for_response()
S
40 5 56
get_image()
S
51 5 26
generate()
S
54 5 19
delete_unmatched_product_variations()
S
55 4 19
get_collection_params()
S
45 1 48
register_routes()
S
50 1 31