EmogrifierNbs D

Total Complexity 162
Dependencies 10
Dependents 0
Total lines 1,509
Lines of code 646
Logical lines of code 355
Comment lines 593
Methods 57
Properties 15

Methods 57

Method Rating Maintainability Complexity Lines of code
process()
A
41 15 56
mapComplexCssProperty()
A
46 15 36
parseNth()
A
49 8 29
parseCssRules()
S
50 7 27
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
existsMatchForCssSelector()
S
63 4 11
translateNthChild()
S
54 3 24
translateCssToXpath()
S
48 2 39
translateNthOfType()
S
54 3 24
parseCssShorthandValue()
S
64 4 9
sortBySelectorPrecedence()
S
66 4 7
emogrifyBodyContent()
S
60 3 12
getCssFromAllStyleNodes()
S
62 3 12
splitCssAndMediaQuery()
S
54 2 21
getNodesToExclude()
S
66 3 9
normalizeStyleAttributes()
S
61 2 13
clearCache()
S
61 2 13
fillStyleAttributesWithMergedStyles()
S
61 2 13
extractMediaQueriesFromCss()
S
63 2 11
removeUnprocessableTags()
S
63 2 11
removeUnprocessableHtmlTag()
S
70 2 6
emogrify()
S
66 2 8
mapCssToHtmlAttributes()
S
69 2 6
mapCssToHtmlAttribute()
S
72 2 5
matchClassAttributes()
S
67 2 7
ensureDocumentType()
S
68 2 7
matchIdAttributes()
S
76 2 3
removeExcludedSelector()
S
73 2 5
removeAllowedMediaType()
S
73 2 5
getOrCreateHeadElement()
S
65 2 9
createXmlDocument()
S
62 1 12
translateCssToXpathReplaceClb()
S
79 1 3
getUnifiedHtml()
S
73 1 5
__construct()
S
77 1 4
splitCssAndMediaQueryReplaceClb()
S
80 1 3
clearAllCaches()
S
70 1 7
setHtml()
S
81 1 3
setCss()
S
81 1 3
disableInlineStyleAttributesParsing()
S
81 1 3
disableStyleBlocksParsing()
S
81 1 3
disableInvisibleNodeRemoval()
S
81 1 3
enableCssToHtmlMapping()
S
81 1 3
purgeVisitedNodes()
S
77 1 4
addStyleElementToDocument()
S
66 1 8
addUnprocessableHtmlTag()
S
80 1 3
addAllowedMediaType()
S
80 1 3
addExcludedSelector()
S
80 1 3
__destruct()
S
82 1 3
attributeValueIsImportant()
S
77 1 3
_isSelectorInvalid()
S
82 1 3
normalizeStyleAttributesReplaceClb()
S
79 1 3