@@ -60,12 +60,12 @@ |
||
60 | 60 | |
61 | 61 | public function push(AssetsCollection $collection) |
62 | 62 | { |
63 | - $this->assets = array_merge_recursive_distinct($this->getAssets(), $collection->getAssets()); |
|
63 | + $this->assets = array_merge_recursive_distinct($this->getAssets(), $collection->getAssets()); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | public function unshift(AssetsCollection $collection) |
67 | 67 | { |
68 | - $this->assets = array_merge_recursive_distinct($collection->getAssets(), $this->getAssets()); |
|
68 | + $this->assets = array_merge_recursive_distinct($collection->getAssets(), $this->getAssets()); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | public function getAssets(): array |
@@ -64,7 +64,7 @@ |
||
64 | 64 | $replaceRelativeUrls = new ReplaceRelativeUrls($this->content, $this->asset->getPath()); |
65 | 65 | $replaceRelativeUrls->setLogger($this->logger); |
66 | 66 | $this->content = $replaceRelativeUrls->getContent(); |
67 | - }else{ |
|
67 | + } else { |
|
68 | 68 | $replaceRelativePath = new ReplaceRelativePaths($this->content, $this->asset->getPath(), $this->environment); |
69 | 69 | $replaceRelativePath->setLogger($this->logger); |
70 | 70 | $this->content = $replaceRelativePath->getContent(); |
@@ -64,7 +64,7 @@ |
||
64 | 64 | $replaceRelativeUrls = new ReplaceRelativeUrls($this->content, $this->asset->getPath()); |
65 | 65 | $replaceRelativeUrls->setLogger($this->logger); |
66 | 66 | $this->content = $replaceRelativeUrls->getContent(); |
67 | - }else{ |
|
67 | + } else{ |
|
68 | 68 | $replaceRelativePath = new ReplaceRelativePaths($this->content, $this->asset->getPath(), $this->environment); |
69 | 69 | $replaceRelativePath->setLogger($this->logger); |
70 | 70 | $this->content = $replaceRelativePath->getContent(); |
@@ -38,7 +38,7 @@ |
||
38 | 38 | { |
39 | 39 | $result = preg_replace_callback( |
40 | 40 | '/(url\([\'"]?)(?!["\'a-z]+:|[\'"]?\/{2})(.+?[^\'"])([\'"]?\))/i', |
41 | - function ($m) { |
|
41 | + function($m) { |
|
42 | 42 | $realpath = realpath($this->path . parse_url($m[2], PHP_URL_PATH)); |
43 | 43 | |
44 | 44 | if ($realpath === false) { |