BwgSvg_Sanitizer A

Total Complexity 66
Dependencies 1
Dependents 1
Total lines 625
Lines of code 342
Logical lines of code 130
Comment lines 240
Methods 22
Properties 1

Methods 22

Method Rating Maintainability Complexity Lines of code
is_safe_href()
A
48 8 36
validate_allowed_attributes()
A
54 9 19
sanitize()
S
48 6 32
get_allowed_attributes()
S
37 1 93
sanitize_file()
S
56 5 20
sanitize_elements()
S
59 4 14
file_get_contents()
S
69 4 6
is_allowed_tag()
S
62 3 12
get_allowed_elements()
S
49 1 36
strip_doctype()
S
69 3 7
strip_comments()
S
66 3 8
strip_php_tags()
S
64 3 9
strip_xlinks()
S
66 3 9
validate_use_tag()
S
69 3 6
is_remote_value()
S
64 2 9
is_encoded()
S
66 2 8
decode_svg()
S
80 1 3
encode_svg()
S
80 1 3
has_js_value()
S
79 1 3
is_a_attribute()
S
78 1 3
remove_element()
S
81 1 3
strip_line_breaks()
S
79 1 3