Index: branches/5.2.x/core/units/helpers/minifiers/minify_helper.php =================================================================== diff -u -N -r14572 -r14628 --- branches/5.2.x/core/units/helpers/minifiers/minify_helper.php (.../minify_helper.php) (revision 14572) +++ branches/5.2.x/core/units/helpers/minifiers/minify_helper.php (.../minify_helper.php) (revision 14628) @@ -1,6 +1,6 @@ Application->GetVar($params['to'], ''); $this->Application->SetVar($params['to'], $files . '|' . $params['files']); return ''; } - if (array_key_exists('from', $params)) { + if ( array_key_exists('from', $params) ) { // get from queue $files = $this->Application->GetVar($params['from']); } @@ -82,32 +83,32 @@ $was_compressed = array_key_exists($hash, $this->compressInfo); - if ($was_compressed) { + if ( $was_compressed ) { $current_file = WRITEABLE . '/' . sprintf($file_mask, $this->compressInfo[$hash]); - if (!file_exists($current_file)) { + if ( !file_exists($current_file) ) { // when info exists, but file doesn't -> re-compress $was_compressed = false; } - if ($this->debugMode) { + if ( $this->debugMode ) { // check if any of listed files was changed since compressed file was created (only, when in debug mode) foreach ($files as $file) { - if (filemtime($file) > $this->compressInfo[$hash]) { + if ( filemtime($file) > $this->compressInfo[$hash] ) { $was_compressed = false; break; } } } } - if (!$was_compressed) { + if ( !$was_compressed ) { $string = ''; $path_length = strlen(FULL_PATH) + 1; foreach ($files as $file) { // add filename before for easier debugging - if ($this->debugMode) { + if ( $this->debugMode ) { $string .= '/* === File: ' . substr($file, $path_length) . ' === */' . "\n"; $string .= '/* ' . str_repeat('=', strlen(substr($file, $path_length)) + 14) . ' */' . "\n\n"; } @@ -117,8 +118,8 @@ } // remove previous version of compressed file - if (isset($current_file)) { - if (file_exists($current_file)) { + if ( isset($current_file) ) { + if ( file_exists($current_file) ) { unlink($current_file); } } @@ -131,7 +132,7 @@ // compress collected data $this->compressInfo[$hash] = adodb_mktime(); - if (!$this->debugMode) { + if ( !$this->debugMode ) { // don't compress merged js/css file in debug mode to allow js/css debugging $this->compressString($string, $extension); }