Get rid of unused argument in inlineCss

[MAILPOET-1891]
This commit is contained in:
Rostislav Wolny
2019-04-04 10:48:26 +02:00
committed by M. Shull
parent c2f5a98893
commit bc32e5f6f3
3 changed files with 7 additions and 11 deletions

View File

@ -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) {