@@ -1,5 +1,8 @@ discard block |
||
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 |
||
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 |
||
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); |