WP_REST_Global_Styles_Controller_Gutenberg B

Total Complexity 95
Dependencies 7
Dependents 1
Total lines 723
Lines of code 428
Logical lines of code 179
Comment lines 216
Methods 22
Properties 1

Methods 22

Method Rating Maintainability Complexity Lines of code
prepare_item_for_response()
B
41 21 49
prepare_item_for_database()
B
43 19 49
get_theme_item()
A
46 10 36
get_item_permissions_check()
S
54 6 21
update_item()
S
54 5 22
get_post()
S
57 5 16
get_item_schema()
S
44 2 54
register_routes()
S
42 1 66
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