AMP_Base_Sanitizer D

Total Complexity 149
Dependencies 10
Dependents 2
Total lines 808
Lines of code 357
Logical lines of code 200
Comment lines 364
Methods 28
Properties 6

Methods 28

Method Rating Maintainability Complexity Lines of code
set_layout()
D
38 34 66
prepare_validation_error()
D
35 33 74
filter_attachment_layout_attributes()
A
52 11 22
remove_invalid_attribute()
A
52 9 24
sanitize_dimension()
A
55 9 19
maybe_enforce_https_src()
S
60 7 12
remove_invalid_child()
S
56 6 18
get_data_amp_attributes()
S
59 6 14
reassemble_style_string()
S
58 3 16
clean_up_after_attribute_removal()
S
63 4 10
filter_data_amp_attributes()
S
65 3 9
should_sanitize_validation_error()
S
67 3 7
is_empty_attribute_value()
S
78 2 3
get_stylesheets()
S
65 2 8
add_or_append_attribute()
S
68 2 7
parse_style_string()
S
64 2 9
__construct()
S
65 2 9
is_document_in_dev_mode()
S
75 1 4
is_exempt_from_validation()
S
75 1 4
has_dev_mode_exemption()
S
75 1 4
add_buffering_hooks()
S
95 1 1
get_body_node()
S
76 1 4
get_styles()
S
82 1 3
get_scripts()
S
82 1 3
sanitize()
S
100 1 0
init()
S
98 1 1
get_selector_conversion_mapping()
S
82 1 3
get_validate_response_data()
S
82 1 3