WP_REST_Controller A

Total Complexity 71
Dependencies 4
Dependents 0
Total lines 538
Lines of code 266
Logical lines of code 115
Comment lines 194
Methods 26
Properties 2

Methods 26

Method Rating Maintainability Complexity Lines of code
get_endpoint_args_for_item_schema()
A
46 13 38
filter_response_by_context()
A
51 11 25
get_context_param()
S
53 5 23
get_additional_fields()
S
62 5 13
prepare_response_for_collection()
S
58 4 16
add_additional_fields_schema()
S
60 4 14
update_additional_fields_for_object()
S
61 4 12
get_object_type()
S
68 3 7
add_additional_fields_to_object()
S
63 3 10
get_public_item_schema()
S
65 3 9
get_collection_params()
S
52 1 28
get_item_schema()
S
81 1 3
register_routes()
S
77 1 3
get_items_permissions_check()
S
72 1 5
prepare_item_for_response()
S
72 1 5
prepare_item_for_database()
S
72 1 5
delete_item()
S
72 1 5
delete_item_permissions_check()
S
72 1 5
update_item()
S
72 1 5
update_item_permissions_check()
S
72 1 5
create_item()
S
72 1 5
create_item_permissions_check()
S
72 1 5
get_item()
S
72 1 5
get_item_permissions_check()
S
72 1 5
get_items()
S
72 1 5
get_post()
S
73 1 5