WP_REST_Global_Styles_Controller_Gutenberg B

Total Complexity 87
Dependencies 7
Dependents 1
Total lines 700
Lines of code 411
Logical lines of code 170
Comment lines 212
Methods 22
Properties 1

Methods 22

Method Rating Maintainability Complexity Lines of code
prepare_item_for_response()
B
42 18 46
prepare_item_for_database()
A
44 16 44
get_theme_item()
A
48 8 32
get_item_permissions_check()
S
54 6 21
update_item()
S
54 5 22
get_post()
S
57 5 16
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
get_theme_items()
S
62 2 11
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