Completed
Branch master (2f2e62)
by Lars
03:49
created
Category
src/voku/helper/HtmlMin.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
    */
100 100
   public function minify($html)
101 101
   {
102
-    $html = (string)$html;
102
+    $html = (string) $html;
103 103
     if (!isset($html[0])) {
104 104
       return '';
105 105
     }
@@ -194,10 +194,10 @@  discard block
 block discarded – undo
194 194
             // final clean-up
195 195
     $html = str_replace(
196 196
         array(
197
-            'html>' . "\n",
198
-            "\n" . '<html',
197
+            'html>'."\n",
198
+            "\n".'<html',
199 199
             '<!doctype',
200
-            '="delete-this-' . $this->randomHash . '"',
200
+            '="delete-this-'.$this->randomHash.'"',
201 201
         ),
202 202
         array(
203 203
             'html>',
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
     foreach ($attributs as $attrName => $attrValue) {
251 251
 
252 252
       if (in_array($attrName, self::$booleanAttributes, true)) {
253
-        $attrs[$attrName] = 'delete-this-' . $this->randomHash;
253
+        $attrs[$attrName] = 'delete-this-'.$this->randomHash;
254 254
         $element->{$attrName} = null;
255 255
         continue;
256 256
       }
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
       if (!$class) {
373 373
         continue;
374 374
       }
375
-      $attrValue .= trim($class) . ' ';
375
+      $attrValue .= trim($class).' ';
376 376
     }
377 377
     $attrValue = trim($attrValue);
378 378
 
Please login to merge, or discard this patch.