Completed
Pull Request — master (#210)
by
unknown
01:46
created
src/Css/Property/Processor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
example/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Css/Processor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
         if (!empty($matches[1])) {
40 40
             foreach ($matches[1] as $match) {
41
-                $css .= trim($match) . "\n";
41
+                $css .= trim($match)."\n";
42 42
             }
43 43
         }
44 44
 
Please login to merge, or discard this patch.
src/CssToInlineStyles.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
 
162 162
     /**
163 163
      * @param string $html
164
-     * @return array|false|string
164
+     * @return string
165 165
      */
166 166
     protected function convertToHtmlEntities($html)
167 167
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         }
32 32
 
33 33
         if ($useHtml5Parser) {
34
-            if (! class_exists(HTML5::class)) {
34
+            if (!class_exists(HTML5::class)) {
35 35
                 throw new LogicException('Using the HTML5 parser requires the html5-php library. Try running "composer require masterminds/html5".');
36 36
             }
37 37
 
Please login to merge, or discard this patch.