summaryrefslogtreecommitdiff
path: root/app/php/web/ClientScriptManager.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-03 21:05:35 +0200
committeremkael <emkael@tlen.pl>2016-05-03 21:05:35 +0200
commit31e38af744b850ba51b792df399a9e7b7e0d261a (patch)
tree15aa2361eb2497e71322159c1494e2617b682b13 /app/php/web/ClientScriptManager.php
parent663467b7dea1f068984b0863bd3eeaf3c54ca862 (diff)
* minor client script manager refactoring
Diffstat (limited to 'app/php/web/ClientScriptManager.php')
-rw-r--r--app/php/web/ClientScriptManager.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/php/web/ClientScriptManager.php b/app/php/web/ClientScriptManager.php
index 64cfa76..4b54be1 100644
--- a/app/php/web/ClientScriptManager.php
+++ b/app/php/web/ClientScriptManager.php
@@ -254,9 +254,7 @@ class ClientScriptManager extends TClientScriptManager {
$scriptUrls = [];
$newScripts = [];
foreach ($registeredScripts as $registeredScript) {
- $renderedScriptUrl = $this->_getRenderedScriptUrl(
- $registeredScript
- );
+ $renderedScriptUrl = $this->_getRenderedScriptUrl($registeredScript);
if ($renderedScriptUrl) {
$scriptUrls[] = $renderedScriptUrl;
} else {
@@ -368,8 +366,10 @@ class ClientScriptManager extends TClientScriptManager {
: $url
] = $path;
}
- $cacheKey = $this->_getFileCollectionCacheKey($paths);
- $cacheFile = $this->_getCacheFilePath($cacheKey . '.css', 'styles');
+ $cacheFile = $this->_getCacheFilePath(
+ $this->_getFileCollectionCacheKey($paths) . '.css',
+ 'styles'
+ );
$this->_appendRenderedSheets($files, $cacheFile);
if (!$this->_isCacheValid($cacheFile, $paths)) {
$styleContent = implode(