DocsPress_Block_Template_Utils A

Total Complexity 59
Dependencies 6
Dependents 1
Total lines 415
Lines of code 206
Logical lines of code 123
Comment lines 156
Methods 15
Properties 0

Methods 15

Method Rating Maintainability Complexity Lines of code
gutenberg_build_template_result_from_post()
A
47 8 35
gutenberg_inject_theme_attribute_in_content()
S
53 6 22
gutenberg_build_template_result_from_file()
S
52 6 21
gutenberg_flatten_blocks()
S
56 5 20
create_new_block_template_object()
S
57 5 15
set_has_theme_file_if_fallback_is_available()
S
60 5 14
get_theme_template_path()
S
53 4 24
supports_block_templates()
S
65 5 9
gutenberg_get_template_paths()
S
62 3 11
convert_slug_to_title()
S
64 3 10
get_block_template()
S
66 3 9
template_is_eligible_for_docs_archive_fallback()
S
69 3 6
generate_template_slug_from_path()
S
75 1 4
theme_has_template()
S
78 1 3
theme_has_template_part()
S
78 1 3