WP_REST_Font_Faces_Controller B

Total Complexity 77
Dependencies 7
Dependents 0
Total lines 937
Lines of code 586
Logical lines of code 181
Comment lines 252
Methods 22
Properties 1

Methods 22

Method Rating Maintainability Complexity Lines of code
validate_create_font_face_settings()
A
41 13 55
create_item()
A
41 11 54
get_item_schema()
A
30 3 173
prepare_item_for_response()
A
51 8 25
delete_item()
S
51 6 26
get_parent_font_family_post()
S
57 5 17
register_routes()
S
42 1 67
get_item()
S
56 4 18
handle_font_file_upload()
S
57 3 16
get_item_permissions_check()
S
59 3 14
get_settings_from_post()
S
62 2 11
get_items_permissions_check()
S
63 2 11
get_collection_params()
S
58 1 16
get_items()
S
68 2 7
sanitize_src()
S
74 2 4
sanitize_font_face_settings()
S
64 2 9
handle_font_file_upload_error()
S
65 2 9
relative_fonts_path()
S
65 2 9
get_public_item_schema()
S
68 2 7
get_create_params()
S
60 1 13
prepare_links()
S
61 1 13
prepare_item_for_database()
S
61 1 12