Emogrifier D

Total Complexity 160
Dependencies 6
Dependents 1
Total lines 1,530
Lines of code 651
Logical lines of code 355
Comment lines 595
Methods 54
Properties 14

Methods 54

Method Rating Maintainability Complexity Lines of code
mapComplexCssProperty()
A
45 16 38
process()
A
41 13 55
parseCssRules()
A
48 8 30
parseNth()
A
49 8 29
generateStyleStringFromDeclarationsArrays()
S
52 7 25
mapSimpleCssProperty()
S
59 6 13
copyCssWithMediaToStyleNode()
S
58 5 15
removeInvisibleNodes()
S
61 5 13
addContentTypeMetaTag()
S
55 4 20
getCssSelectorPrecedence()
S
55 4 19
parseCssDeclarationsBlock()
S
56 4 18
translateCssToXpath()
S
47 2 41
translateNthOfType()
S
54 3 24
translateNthChild()
S
54 3 24
parseCssShorthandValue()
S
64 4 9
sortBySelectorPrecedence()
S
66 4 7
handleXpathError()
S
60 3 14
extractMediaQueriesFromCss()
S
60 3 13
emogrifyBodyContent()
S
60 3 12
getCssFromAllStyleNodes()
S
62 3 12
splitCssAndMediaQuery()
S
54 2 21
getNodesToExclude()
S
66 3 9
normalizeStyleAttributes()
S
59 2 15
fillStyleAttributesWithMergedStyles()
S
61 2 13
clearCache()
S
61 2 13
removeUnprocessableTags()
S
63 2 11
removeAllowedMediaType()
S
73 2 5
removeExcludedSelector()
S
73 2 5
emogrify()
S
66 2 8
mapCssToHtmlAttributes()
S
69 2 6
removeUnprocessableHtmlTag()
S
70 2 6
mapCssToHtmlAttribute()
S
72 2 5
matchClassAttributes()
S
67 2 7
matchIdAttributes()
S
76 2 3
existsMatchForCssSelector()
S
74 2 4
ensureDocumentType()
S
68 2 7
getOrCreateHeadElement()
S
65 2 9
createXmlDocument()
S
62 1 12
addExcludedSelector()
S
80 1 3
getUnifiedHtml()
S
73 1 5
clearAllCaches()
S
70 1 7
addStyleElementToDocument()
S
66 1 8
enableCssToHtmlMapping()
S
81 1 3
disableInvisibleNodeRemoval()
S
81 1 3
disableStyleBlocksParsing()
S
81 1 3
disableInlineStyleAttributesParsing()
S
81 1 3
purgeVisitedNodes()
S
77 1 4
addUnprocessableHtmlTag()
S
80 1 3
attributeValueIsImportant()
S
77 1 3
__destruct()
S
82 1 3
addAllowedMediaType()
S
80 1 3
setCss()
S
81 1 3
setHtml()
S
81 1 3
__construct()
S
77 1 4