JS_Widgets_REST_Controller A

Total Complexity 75
Dependencies 5
Dependents 1
Total lines 591
Lines of code 339
Logical lines of code 159
Comment lines 183
Methods 23
Properties 2

Methods 23

Method Rating Maintainability Complexity Lines of code
rest_validate_value_from_schema()
B
42 16 50
get_endpoint_args_for_item_schema()
A
45 14 39
update_item()
A
46 8 37
get_item_schema()
A
45 7 42
prepare_item_for_response()
S
50 5 28
register_routes()
S
47 1 44
rest_validate_request_arg()
S
65 3 8
get_items_permissions_check()
S
65 3 8
get_item()
S
61 2 12
current_user_can_manage_widgets()
S
79 2 3
get_items()
S
66 2 8
prepare_links()
S
59 1 15
__construct()
S
71 1 6
get_namespace()
S
82 1 3
get_rest_base()
S
82 1 3
get_object_type()
S
80 1 3
get_object_id()
S
76 1 4
get_base_url()
S
75 1 4
get_collection_params()
S
69 1 7
get_item_permissions_check()
S
80 1 3
create_item_permissions_check()
S
77 1 4
update_item_permissions_check()
S
77 1 4
delete_item_permissions_check()
S
77 1 4