Completed
Push — master ( b5e696...31910f )
by frank
02:19
created
classes/autoptimizeBase.php 1 patch
Braces   +10 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+    exit;
4
+}
5
+// Exit if accessed directly
3 6
 
4 7
 abstract class autoptimizeBase {
5 8
     protected $content = '';
@@ -122,7 +125,9 @@  discard block
 block discarded – undo
122 125
         $out = parse_url($in,PHP_URL_HOST);
123 126
         
124 127
         // fallback if parse_url does not understand the url is in fact a url
125
-        if (empty($out)) $out=$in;
128
+        if (empty($out)) {
129
+            $out=$in;
130
+        }
126 131
         
127 132
         return $out;
128 133
     }
@@ -359,7 +364,9 @@  discard block
 block discarded – undo
359 364
 		
360 365
 		// read file, return false if empty
361 366
 		$_toMinify = file_get_contents($pathIn);
362
-		if ( empty($_toMinify) ) return false;
367
+		if ( empty($_toMinify) ) {
368
+		    return false;
369
+		}
363 370
 		
364 371
 		// check cache
365 372
 		$_md5hash = "single_".md5($_toMinify);
Please login to merge, or discard this patch.