Get rid of unused argument in inlineCss
[MAILPOET-1891]
This commit is contained in:
committed by
M. Shull
parent
c2f5a98893
commit
bc32e5f6f3
@ -32,15 +32,11 @@ use MailPoet\Newsletter\Renderer\EscapeHelper as EHelper;
|
||||
*/
|
||||
|
||||
class CSS {
|
||||
/*
|
||||
* The core of the algorithm, takes a URL and returns the HTML found there with the CSS inlined.
|
||||
* If you pass $contents then the original HTML is not downloaded and $contents is used instead.
|
||||
* $url is mandatory as it is used to resolve the links to the stylesheets found in the HTML.
|
||||
*/
|
||||
/**
|
||||
* @param string $contents
|
||||
* @return DomNode
|
||||
*/
|
||||
function inlineCSS($url, $contents = null) {
|
||||
function inlineCSS($contents) {
|
||||
$html = pQuery::parseStr($contents);
|
||||
|
||||
if (!$html instanceof DomNode) {
|
||||
|
Reference in New Issue
Block a user