Skip to content

Commit 44c4a93

Browse files
committed
parseCSS renamed to getCSS and it is also private now
1 parent 5891920 commit 44c4a93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Northys/CssInliner/CssInliner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function addCSS($filename)
4141

4242

4343

44-
public function parseCSS() {
44+
private function getCSS() {
4545
// get styles inside <style> tags in provided HTML
4646
foreach ($this->dom->getElementsByTagName('style') as $style) {
4747
$this->css .= $style->textContent;
@@ -62,7 +62,7 @@ public function render($html)
6262
$this->dom = new \DOMDocument;
6363
$this->dom->loadHTML($html);
6464
$this->finder = new \DOMXPath($this->dom);
65-
$this->css = $this->parseCSS();
65+
$this->css = $this->getCSS();
6666
foreach ($this->css->getAllRuleSets() as $ruleSet) {
6767
$selector = $ruleSet->getSelector();
6868
foreach ($this->finder->evaluate(CssSelector::toXPath($selector[0])) as $node) {

0 commit comments

Comments
 (0)