AMP_Base_Sanitizer D

Total Complexity 170
Dependencies 12
Dependents 2
Total lines 915
Lines of code 411
Logical lines of code 228
Comment lines 412
Methods 32
Properties 5

Methods 32

Method Rating Maintainability Complexity Lines of code
set_layout()
D
31 47 94
prepare_validation_error()
C
35 32 74
remove_invalid_attribute()
A
49 11 29
sanitize_dimension()
A
50 11 25
filter_attachment_layout_attributes()
A
52 11 22
maybe_enforce_https_src()
S
60 7 12
remove_invalid_child()
S
57 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
__construct()
S
65 2 9
parse_style_string()
S
64 2 9
add_or_append_attribute()
S
68 2 7
is_empty_attribute_value()
S
78 2 3
get_arg()
S
71 2 6
get_stylesheets()
S
65 2 8
init()
S
98 1 1
get_selector_conversion_mapping()
S
82 1 3
has_light_shadow_dom()
S
82 1 3
get_args()
S
82 1 3
update_args()
S
79 1 3
get_scripts()
S
82 1 3
sanitize()
S
100 1 0
add_buffering_hooks()
S
95 1 1
get_styles()
S
82 1 3
is_exempt_from_validation()
S
75 1 4
has_dev_mode_exemption()
S
75 1 4
is_document_in_dev_mode()
S
75 1 4
get_body_node()
S
76 1 4
get_validate_response_data()
S
82 1 3