@@ -32,7 +32,7 @@ |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | $options = []; |
| 35 | - if(isset($minifyOptions[$type])){ |
|
| 35 | + if (isset($minifyOptions[$type])) { |
|
| 36 | 36 | $options = $minifyOptions[$type]; |
| 37 | 37 | } |
| 38 | 38 | return new $minifyClass($content, $options); |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function getContent(): string |
| 37 | 37 | { |
| 38 | - $result = preg_replace_callback('/(url\([\'"]?)(?!["\'a-z]+:|[\'"]?\/{2})(.+[^\'"])([\'"]?\))/i', function ($m){ |
|
| 38 | + $result = preg_replace_callback('/(url\([\'"]?)(?!["\'a-z]+:|[\'"]?\/{2})(.+[^\'"])([\'"]?\))/i', function($m) { |
|
| 39 | 39 | $urlConverter = new UrlConverter(); |
| 40 | 40 | return $m[1] . $urlConverter->relativeToAbsolute($this->url, $m[2]) . $m[3]; |
| 41 | 41 | }, $this->content); |