Completed
Push — master ( 31ccf0...2dcc13 )
by Lars
02:03
created
src/voku/helper/HtmlMin.php 1 patch
Spacing   +7 added lines, -7 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>',
@@ -249,10 +249,10 @@  discard block
 block discarded – undo
249 249
     */
250 250
 
251 251
     $attrs = array();
252
-    foreach ((array)$attributs as $attrName => $attrValue) {
252
+    foreach ((array) $attributs as $attrName => $attrValue) {
253 253
 
254 254
       if (in_array($attrName, self::$booleanAttributes, true)) {
255
-        $attrs[$attrName] = 'delete-this-' . $this->randomHash;
255
+        $attrs[$attrName] = 'delete-this-'.$this->randomHash;
256 256
         $element->{$attrName} = null;
257 257
         continue;
258 258
       }
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
       if (!$class) {
375 375
         continue;
376 376
       }
377
-      $attrValue .= trim($class) . ' ';
377
+      $attrValue .= trim($class).' ';
378 378
     }
379 379
     $attrValue = trim($attrValue);
380 380
 
Please login to merge, or discard this patch.