WC_REST_Orders_V2_Controller D

Total Complexity 180
Dependencies 16
Dependents 0
Total lines 2,036
Lines of code 1,583
Logical lines of code 330
Comment lines 318
Methods 30
Properties 5

Methods 30

Method Rating Maintainability Complexity Lines of code
get_item_schema()
D
11
1 889
get_formatted_item_data()
C
30 22 130
get_order_item_data()
B
37 22 64
prepare_object_for_database()
B
41 22 48
save_object()
B
43 20 40
prepare_objects_query()
A
45 10 43
prepare_line_items()
S
55 7 16
maybe_set_item_meta_data()
S
62 7 10
get_product_id()
S
58 6 14
set_item()
S
53 5 23
register_routes()
S
41 1 73
prepare_coupon_lines()
S
59 5 12
prepare_shipping_lines()
S
60 5 11
prepare_fee_lines()
S
60 5 11
get_collection_params()
S
44 1 56
prepare_links()
S
55 3 21
item_is_null()
S
64 4 9
delete_item_permissions_check()
S
65 4 7
update_item_permissions_check()
S
65 4 7
get_item_permissions_check()
S
65 4 7
prepare_object_for_response()
S
61 3 11
get_objects()
S
57 2 19
merge_meta_item_with_formatted_meta_display_attributes()
S
59 2 15
get_object()
S
68 3 7
update_address()
S
67 3 7
filter_internal_meta_keys()
S
61 2 13
maybe_set_item_props()
S
73 2 5
maybe_set_item_prop()
S
73 2 5
get_order_statuses()
S
68 2 7
filter_writable_props()
S
79 1 3