WP_REST_Global_Styles_Controller_Gutenberg B

Total Complexity 85
Dependencies 7
Dependents 0
Total lines 689
Lines of code 414
Logical lines of code 172
Comment lines 205
Methods 18
Properties 1

Methods 18

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