Completed
Push — master ( 8bc1df...382659 )
by Lars
06:46 queued 27s
created
src/CssToInlineStyles.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.