DocsPress_Block_Template_Utils A

Total Complexity 63
Dependencies 6
Dependents 1
Total lines 444
Lines of code 226
Logical lines of code 139
Comment lines 162
Methods 15
Properties 0

Methods 15

Method Rating Maintainability Complexity Lines of code
gutenberg_build_template_result_from_post()
A
43 11 44
gutenberg_build_template_result_from_file()
A
47 8 32
gutenberg_inject_theme_attribute_in_content()
S
53 6 22
gutenberg_flatten_blocks()
S
56 5 20
set_has_theme_file_if_fallback_is_available()
S
60 5 14
get_theme_template_path()
S
53 4 24
create_new_block_template_object()
S
57 4 15
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