From d2d93b4bd3740be11ba771a662fa8a63d76fe5a2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 2 Oct 2007 16:19:23 +0000 Subject: - Patch #173486 by scor: fixed code style issues. --- includes/common.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 12051c7a9..0ad9d2428 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1601,7 +1601,7 @@ function drupal_get_css($css = NULL) { $no_theme_preprocess .= ''."\n"; } else { - $output .= ''."\n"; + $output .= ''."\n"; } } } @@ -1648,7 +1648,7 @@ function drupal_build_css_cache($types, $filename) { // Wraps all @import arguments in url(). $contents = preg_replace('/@import\s+(?!url)[\'"]?(\S*)\b[\'"]?/i', '@import url("\1")', $contents); // Fix all paths within this CSS file, ignoring absolute paths. - $data .= preg_replace('/url\(([\'"]?)(?![a-z]+:)/i', 'url(\1'. $path . '\2', $contents); + $data .= preg_replace('/url\(([\'"]?)(?![a-z]+:)/i', 'url(\1'. $path .'\2', $contents); } } } @@ -1879,7 +1879,7 @@ function drupal_build_js_cache($files, $filename) { foreach ($files as $path => $info) { if ($info['preprocess']) { // Append a ';' after each JS file to prevent them from running together. - $contents .= _drupal_compress_js(file_get_contents($path). ';'); + $contents .= _drupal_compress_js(file_get_contents($path) .';'); } } @@ -1982,9 +1982,9 @@ function _packer_apply($script, $regexps, $escape = FALSE) { $regexp = '/'; foreach ($_regexps as $_regexp) { list($expression) = $_regexp; - $regexp .= '(' . substr($expression, 1, -1) . ')|'; + $regexp .= '('. substr($expression, 1, -1) .')|'; } - $regexp = substr($regexp, 0, -1) . '/'; + $regexp = substr($regexp, 0, -1) .'/'; // In order to simplify the regexps that look e.g. for quoted strings, we // remove all escaped characters (such as \' or \") from the data. Then, we -- cgit v1.2.3