@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | // check if there is some link css reference |
196 | 196 | if ($this->loadCSSFromHTML) { |
197 | 197 | foreach ($dom->findMulti('link') as $node) { |
198 | - $file = ($path ?: __DIR__) . '/' . $node->getAttribute('href'); |
|
198 | + $file = ($path ?: __DIR__).'/'.$node->getAttribute('href'); |
|
199 | 199 | |
200 | 200 | if (\file_exists($file)) { |
201 | 201 | $css .= \file_get_contents($file); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | && |
246 | 246 | $this->css_media_queries |
247 | 247 | ) { |
248 | - $html = \str_ireplace('</head>', "\n" . '<style type="text/css">' . "\n" . $this->css_media_queries . "\n" . '</style>' . "\n" . '</head>', $html); |
|
248 | + $html = \str_ireplace('</head>', "\n".'<style type="text/css">'."\n".$this->css_media_queries."\n".'</style>'."\n".'</head>', $html); |
|
249 | 249 | } |
250 | 250 | |
251 | 251 | return $html; |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | if (!empty($matches[1])) { |
274 | 274 | // add |
275 | 275 | foreach ($matches[1] as $match) { |
276 | - $css .= \trim($match) . "\n"; |
|
276 | + $css .= \trim($match)."\n"; |
|
277 | 277 | } |
278 | 278 | } |
279 | 279 | |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | // build chunks |
503 | 503 | foreach ($properties as $key => $values) { |
504 | 504 | foreach ((array) $values as $value) { |
505 | - $propertyChunks[] = $key . ': ' . $value . ';'; |
|
505 | + $propertyChunks[] = $key.': '.$value.';'; |
|
506 | 506 | } |
507 | 507 | } |
508 | 508 | |
@@ -839,7 +839,7 @@ discard block |
||
839 | 839 | && |
840 | 840 | \strpos($properties[$i + 1], 'base64,') !== false |
841 | 841 | ) { |
842 | - $properties[$i] .= ';' . $properties[$i + 1]; |
|
842 | + $properties[$i] .= ';'.$properties[$i + 1]; |
|
843 | 843 | $properties[$i + 1] = ''; |
844 | 844 | ++$i; |
845 | 845 | } |