@@ -184,7 +184,9 @@ discard block |
||
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | $css = file_get_contents( $style['path'] ); |
| 187 | - if( $style['minify'] ) $css = $this->minify_css( $css ); |
|
| 187 | + if( $style['minify'] ) { |
|
| 188 | + $css = $this->minify_css( $css ); |
|
| 189 | + } |
|
| 188 | 190 | |
| 189 | 191 | // Compile the dynamic CSS |
| 190 | 192 | $compiled_css = $this->compile_css( |
@@ -310,9 +312,17 @@ discard block |
||
| 310 | 312 | */ |
| 311 | 313 | protected function strtoval( &$str ) |
| 312 | 314 | { |
| 313 | - if( 'false' === strtolower($str) ) $str = false; |
|
| 314 | - if( 'true' === strtolower($str) ) $str = true; |
|
| 315 | - if( false !== strrpos( $str, "'" ) ) $str = str_replace ( "'", "", $str ); |
|
| 316 | - if( is_numeric( $str ) ) $str = floatval( $str ); |
|
| 315 | + if( 'false' === strtolower($str) ) { |
|
| 316 | + $str = false; |
|
| 317 | + } |
|
| 318 | + if( 'true' === strtolower($str) ) { |
|
| 319 | + $str = true; |
|
| 320 | + } |
|
| 321 | + if( false !== strrpos( $str, "'" ) ) { |
|
| 322 | + $str = str_replace ( "'", "", $str ); |
|
| 323 | + } |
|
| 324 | + if( is_numeric( $str ) ) { |
|
| 325 | + $str = floatval( $str ); |
|
| 326 | + } |
|
| 317 | 327 | } |
| 318 | 328 | } |