We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5891920 commit 44c4a93Copy full SHA for 44c4a93
1 file changed
src/Northys/CssInliner/CssInliner.php
@@ -41,7 +41,7 @@ public function addCSS($filename)
41
42
43
44
- public function parseCSS() {
+ private function getCSS() {
45
// get styles inside <style> tags in provided HTML
46
foreach ($this->dom->getElementsByTagName('style') as $style) {
47
$this->css .= $style->textContent;
@@ -62,7 +62,7 @@ public function render($html)
62
$this->dom = new \DOMDocument;
63
$this->dom->loadHTML($html);
64
$this->finder = new \DOMXPath($this->dom);
65
- $this->css = $this->parseCSS();
+ $this->css = $this->getCSS();
66
foreach ($this->css->getAllRuleSets() as $ruleSet) {
67
$selector = $ruleSet->getSelector();
68
foreach ($this->finder->evaluate(CssSelector::toXPath($selector[0])) as $node) {
0 commit comments