WP_REST_Widget_Types_Controller S

Total Complexity 42
Dependencies 4
Dependents 1
Total lines 584
Lines of code 374
Logical lines of code 125
Comment lines 147
Methods 15
Properties 0

Methods 15

Method Rating Maintainability Complexity Lines of code
encode_form_data()
A
39 9 70
prepare_item_for_response()
S
48 6 34
get_widgets()
S
52 6 25
register_routes()
S
39 1 91
get_item_schema()
S
43 2 61
get_item_permissions_check()
S
62 3 12
get_widget_form()
S
53 2 22
get_widget()
S
65 3 8
check_read_permission()
S
62 2 12
get_items()
S
66 2 8
get_item()
S
65 2 9
__construct()
S
77 1 4
get_items_permissions_check()
S
81 1 3
prepare_links()
S
64 1 10
get_collection_params()
S
73 1 5