Skip to content

Commit

Permalink
Change after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverklee committed Oct 1, 2019
1 parent 6977ec4 commit 9b23e59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Emogrifier/CssInliner.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,9 @@ private function splitCssAndMediaQuery(string $css): array
*/
private function copyInlinableCssToStyleAttribute(\DOMElement $node, array $cssRule)
{
$newStyleDeclarations = $this->parseCssDeclarationsBlock((string)$cssRule['declarationsBlock']);
/** @var string $declarationsBlock */
$declarationsBlock = $cssRule['declarationsBlock'];
$newStyleDeclarations = $this->parseCssDeclarationsBlock($declarationsBlock);
if ($newStyleDeclarations === []) {
return;
}
Expand Down

0 comments on commit 9b23e59

Please sign in to comment.