private function mapAllInlineStylesToHtmlAttributes(\DOMXPath $xPath)
    {
        /** @var \DOMElement $node */
        foreach ($this->getAllNodesWithStyleAttribute($xPath) as $node) {
            $inlineStyleDeclarations = $this->parseCssDeclarationsBlock($node->getAttribute('style'));
            $this->mapCssToHtmlAttributes($inlineStyleDeclarations, $node);
        }
    }
private function mapAllInlineStylesToHtmlAttributes(\DOMXPath $xPath)
    {
        /** @var \DOMElement $node */
        foreach ($this->getAllNodesWithStyleAttribute($xPath) as $node) {
            $inlineStyleDeclarations = $this->parseCssDeclarationsBlock($node->getAttribute('style'));
            $this->mapCssToHtmlAttributes($inlineStyleDeclarations, $node);
        }
    }
private function mapAllInlineStylesToHtmlAttributes ( \ DOMXPath $ xPath ) { /** @var \DOMElement $node */ foreach ( $ this -> getAllNodesWithStyleAttribute ( $ xPath ) as $ node ) { $ inlineStyleDeclarations = $ this -> parseCssDeclarationsBlock ( $ node -> getAttribute ( 'style' ) ) ; $ this -> mapCssToHtmlAttributes ( $ inlineStyleDeclarations , $ node ) ; } }
Searches for all nodes with a style attribute, transforms the CSS found
to HTML attributes and adds those attributes to each node.

@param \DOMXPath $xPath

@return void
Searches for all nodes with a style attribute transforms the CSS found to HTML attributes and adds those attributes to each node .