H5PContentValidator D

Total Complexity 191
Dependencies 1
Dependents 4
Total lines 1,433
Lines of code 1,008
Logical lines of code 385
Comment lines 288
Methods 25
Properties 8

Methods 25

Method Rating Maintainability Complexity Lines of code
validateText()
D
33 37 78
_filter_xss_attributes()
C
33 27 102
validateSelect()
B
44 20 42
validateGroup()
A
44 15 43
validateLibrary()
A
38 13 73
getMetadataSemantics()
A
26
1 241
_validateFilelike()
A
44 14 43
_filter_xss_split()
A
45 12 39
getCopyrightSemantics()
A
31 2 155
validateNumber()
A
54 10 21
validateContentFiles()
S
50 7 26
validateList()
S
53 7 23
_strip_dangerous_protocols()
S
54 6 20
filter_xss()
S
52 3 26
filterParams()
S
68 3 7
validateMetadata()
S
61 2 12
__construct()
S
55 1 20
validateVideo()
S
71 2 5
validateAudio()
S
73 2 5
filter_xss_bad_protocol()
S
70 2 6
addon()
S
65 1 9
getDependencies()
S
82 1 3
validateBoolean()
S
80 1 3
validateFile()
S
80 1 3
validateImage()
S
78 1 3