WC_REST_Posts_Controller B

Total Complexity 77
Dependencies 3
Dependents 0
Total lines 706
Lines of code 379
Logical lines of code 207
Comment lines 230
Methods 18
Properties 4

Methods 18

Method Rating Maintainability Complexity Lines of code
get_items()
A
37 12 72
update_item()
A
47 11 32
delete_item()
A
47 9 31
get_collection_params()
A
38 4 89
get_item()
S
56 8 15
create_item()
S
47 6 34
prepare_items_query()
S
55 6 18
get_allowed_query_vars()
S
51 2 29
get_item_permissions_check()
S
66 3 7
update_item_permissions_check()
S
66 3 7
delete_item_permissions_check()
S
66 3 7
get_items_permissions_check()
S
69 2 6
batch_items_permissions_check()
S
69 2 6
create_item_permissions_check()
S
69 2 6
prepare_links()
S
63 1 11
delete_post()
S
80 1 3
add_post_meta_fields()
S
82 1 3
update_post_meta_fields()
S
82 1 3