Completed
Push — master ( 2b4e5c...da5b2c )
by frank
02:20
created
classes/autoptimizeScripts.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                             $origTag = $tag;
127 127
                             foreach ($excludeJS as $exclTag => $exclFlags) {
128 128
                                 if ( strpos($origTag,$exclTag)!==false && in_array($exclFlags,array("async","defer")) ) {
129
-                                   $tag = str_replace('<script ','<script '.$exclFlags.' ',$tag);
129
+                                    $tag = str_replace('<script ','<script '.$exclFlags.' ',$tag);
130 130
                                 }
131 131
                             }
132 132
                         }
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
         
243 243
         //$this->jscode has all the uncompressed code now.
244 244
         if ($this->alreadyminified!==true) {
245
-          if (class_exists('JSMin') && apply_filters( 'autoptimize_js_do_minify' , true)) {
245
+            if (class_exists('JSMin') && apply_filters( 'autoptimize_js_do_minify' , true)) {
246 246
             if (@is_callable(array("JSMin","minify"))) {
247 247
                 $tmp_jscode = trim(JSMin::minify($this->jscode));
248 248
                 if (!empty($tmp_jscode)) {
@@ -256,10 +256,10 @@  discard block
 block discarded – undo
256 256
                 $this->jscode = $this->inject_minified($this->jscode);
257 257
                 return false;
258 258
             }
259
-          } else {
260
-              $this->jscode = $this->inject_minified($this->jscode);
259
+            } else {
260
+                $this->jscode = $this->inject_minified($this->jscode);
261 261
             return false;
262
-          }
262
+            }
263 263
         }
264 264
         return true;
265 265
     }
Please login to merge, or discard this patch.