Emogrifier C

Total Complexity 124
Dependencies 7
Dependents 1
Total lines 1,217
Lines of code 562
Logical lines of code 285
Comment lines 482
Methods 50
Properties 12

Methods 50

Method Rating Maintainability Complexity Lines of code
process()
A
43 12 50
parseNth()
A
49 8 29
parseCssRules()
S
50 7 27
generateStyleStringFromDeclarationsArrays()
S
54 6 19
copyCssWithMediaToStyleNode()
S
58 5 15
removeInvisibleNodes()
S
61 5 13
translateCssToXpath()
S
43 2 55
addContentTypeMetaTag()
S
55 4 20
getCssSelectorPrecedence()
S
55 4 19
parseCssDeclarationsBlock()
S
56 4 18
translateNthOfType()
S
54 3 24
translateNthChild()
S
54 3 24
sortBySelectorPrecedence()
S
66 4 7
emogrifyBodyContent()
S
60 3 12
getCssFromAllStyleNodes()
S
62 3 12
getNodesToExclude()
S
66 3 9
normalizeStyleAttributes()
S
61 2 13
clearCache()
S
61 2 13
fillStyleAttributesWithMergedStyles()
S
61 2 13
removeUnprocessableTags()
S
63 2 11
extractMediaQueriesFromCss()
S
63 2 11
matchClassAttributes()
S
67 2 7
ensureDocumentType()
S
68 2 7
removeAllowedMediaType()
S
73 2 5
splitCssAndMediaQuery()
S
59 1 15
getOrCreateHeadElement()
S
65 2 9
matchIdAttributes()
S
76 2 3
existsMatchForCssSelector()
S
74 2 4
emogrify()
S
65 2 9
removeUnprocessableHtmlTag()
S
70 2 6
removeExcludedSelector()
S
73 2 5
createXmlDocument()
S
62 1 12
disableInvisibleNodeRemoval()
S
81 1 3
disableInlineStyleAttributesParsing()
S
81 1 3
disableStyleBlocksParsing()
S
81 1 3
setCss()
S
81 1 3
translateCssToXpath_callback()
S
79 1 3
setHtml()
S
81 1 3
addAllowedMediaType()
S
80 1 3
_media_concat()
S
79 1 3
clearAllCaches()
S
70 1 7
getUnifiedHtml()
S
73 1 5
splitCssAndMediaQuery_callback()
S
91 1 2
addStyleElementToDocument()
S
66 1 8
purgeVisitedNodes()
S
77 1 4
__destruct()
S
82 1 3
addUnprocessableHtmlTag()
S
80 1 3
normalizeStyleAttributes_callback()
S
79 1 3
addExcludedSelector()
S
80 1 3
__construct()
S
77 1 4