HTMLProcessor D

Total Complexity 138
Dependencies 5
Dependents 1
Total lines 1
Lines of code 39
Logical lines of code 388
Comment lines 0
Methods 39
Properties 0

Methods 39

Method Rating Maintainability Complexity Lines of code
processHTML()
A
79 13 1
convertToOfflineURL()
S
81 8 1
rewriteWPPaths()
S
82 7 1
convertToRelativeURL()
S
83 6 1
addDiscoveredURL()
S
83 6 1
processHead()
S
84 6 1
convertToOfflineURLSrcSetURL()
S
82 5 1
rewriteBaseURL()
S
84 5 1
removeQueryStringFromInternalLink()
S
84 5 1
writeDiscoveredURLs()
S
83 5 1
processMeta()
S
83 5 1
isValidURL()
S
85 5 1
processImageSrcSet()
S
82 4 1
processAnchor()
S
84 4 1
processLink()
S
82 4 1
rewriteEscapedURLs()
S
82 4 1
rewriteUnchangedPlaceholderURLs()
S
82 4 1
shouldCreateBaseHREF()
S
87 3 1
stripHTMLComments()
S
86 3 1
shouldUseRelativeURLs()
S
87 3 1
getTargetSiteProtocol()
S
86 3 1
shouldCreateOfflineURLs()
S
86 3 1
rewriteWPPathsSrcSetURL()
S
84 3 1
detectIfURLsShouldBeHarvested()
S
86 3 1
logAction()
S
86 2 1
convertToRelativeURLSrcSetURL()
S
86 2 1
detectUnchangedPlaceholderURLs()
S
87 2 1
detectEscapedSiteURLs()
S
86 2 1
isInternalLink()
S
87 2 1
normalizeURL()
S
87 2 1
getHTML()
S
87 1 1
getProtocolRelativeURL()
S
87 1 1
rewriteBaseURLSrcSetURL()
S
88 1 1
rewriteSiteURLsToPlaceholder()
S
84 1 1
processScript()
S
87 1 1
processImage()
S
87 1 1
getBaseURLRewritePatterns()
S
87 1 1
getBaseURLRewriteReplacements()
S
86 1 1
__construct()
S
88 1 1