WP_REST_Global_Styles_Controller_Gutenberg B

Total Complexity 92
Dependencies 7
Dependents 1
Total lines 741
Lines of code 441
Logical lines of code 191
Comment lines 218
Methods 22
Properties 1

Methods 22

Method Rating Maintainability Complexity Lines of code
prepare_item_for_response()
B
40 20 54
prepare_item_for_database()
B
43 16 46
get_theme_item()
A
46 9 36
get_item_permissions_check()
S
54 6 21
update_item()
S
54 5 22
get_post()
S
57 5 16
get_theme_items()
S
51 4 27
register_routes()
S
42 1 66
get_item_schema()
S
45 2 49
update_item_permissions_check()
S
59 4 14
prepare_links()
S
56 3 18
get_available_actions()
S
63 3 11
get_theme_items_permissions_check()
S
62 2 12
get_theme_item_permissions_check()
S
62 2 12
validate_custom_css()
S
64 2 10
get_item()
S
68 2 7
get_collection_params()
S
82 1 3
protected_title_format()
S
82 1 3
check_update_permission()
S
79 1 3
check_read_permission()
S
79 1 3
_sanitize_global_styles_callback()
S
80 1 3
__construct()
S
74 1 5