@@ -19,8 +19,9 @@ discard block |
||
19 | 19 | * @param mixed $view |
20 | 20 | */ |
21 | 21 | protected function _compileLibrary(BaseGui $library, &$view = NULL) { |
22 | - if (isset($view)) |
|
23 | - $library->compileHtml($this, $view); |
|
22 | + if (isset($view)) { |
|
23 | + $library->compileHtml($this, $view); |
|
24 | + } |
|
24 | 25 | if ($library->isAutoCompile()) { |
25 | 26 | $library->compile(true); |
26 | 27 | } |
@@ -39,8 +40,9 @@ discard block |
||
39 | 40 | } |
40 | 41 | |
41 | 42 | protected function minify($input) { |
42 | - if (trim($input) === "") |
|
43 | - return $input; |
|
43 | + if (trim($input) === "") { |
|
44 | + return $input; |
|
45 | + } |
|
44 | 46 | $input = preg_replace(array( |
45 | 47 | // Remove comment(s) |
46 | 48 | '#\s*("(?:[^"\\\]++|\\\.)*+"|\'(?:[^\'\\\\]++|\\\.)*+\')\s*|\s*\/\*(?!\!|@cc_on)(?>[\s\S]*?\*\/)\s*|\s*(?<![\:\=])\/\/.*(?=[\n\r]|$)|^\s*|\s*$#', |