@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | // if the new property begins with base64 it is part of the current property |
27 | 27 | if (isset($properties[$i + 1]) && strpos(trim($properties[$i + 1]), 'base64,') === 0) { |
28 | - $properties[$i] .= ';' . trim($properties[$i + 1]); |
|
28 | + $properties[$i] .= ';'.trim($properties[$i + 1]); |
|
29 | 29 | $keysToRemove[] = $i + 1; |
30 | 30 | } |
31 | 31 | } |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
3 | +require_once __DIR__.'/../vendor/autoload.php'; |
|
4 | 4 | |
5 | 5 | use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles; |
6 | 6 | |
7 | 7 | // create instance |
8 | 8 | $cssToInlineStyles = new CssToInlineStyles(); |
9 | 9 | |
10 | -$html = file_get_contents(__DIR__ . '/examples/sumo/index.htm'); |
|
11 | -$css = file_get_contents(__DIR__ . '/examples/sumo/style.css'); |
|
10 | +$html = file_get_contents(__DIR__.'/examples/sumo/index.htm'); |
|
11 | +$css = file_get_contents(__DIR__.'/examples/sumo/style.css'); |
|
12 | 12 | |
13 | 13 | // output |
14 | 14 | echo $cssToInlineStyles->convert( |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | if (!empty($matches[1])) { |
42 | 42 | foreach ($matches[1] as $match) { |
43 | - $css .= trim($match) . "\n"; |
|
43 | + $css .= trim($match)."\n"; |
|
44 | 44 | } |
45 | 45 | } |
46 | 46 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | /** @var \DOMElement $node */ |
63 | 63 | foreach ($document->getElementsByTagName('link') as $node) { |
64 | - $file = $rootDirectory . '/' . $node->getAttribute('href'); |
|
64 | + $file = $rootDirectory.'/'.$node->getAttribute('href'); |
|
65 | 65 | |
66 | 66 | if (\file_exists($file)) { |
67 | 67 | $css .= \file_get_contents($file); |