diff --git a/includes/common.inc b/includes/common.inc index 12051c7a9de3f4b7351bbc3f88d30020cbed2756..0ad9d2428b399a79a41593d3f5871819faf3848f 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 diff --git a/modules/openid/openid.inc b/modules/openid/openid.inc index 1e968c103dd50514d6bb45bdda4195285fce698b..8eeaedd55ee5ac9deb37c9236f839b02ab81b5d1 100644 --- a/modules/openid/openid.inc +++ b/modules/openid/openid.inc @@ -33,7 +33,7 @@ function openid_redirect_http($url, $message) { } $sep = (strpos($url, '?') === FALSE) ? '?' : '&'; - header('Location: ' . $url . $sep . implode('&', $query), TRUE, 302); + header('Location: '. $url . $sep . implode('&', $query), TRUE, 302); exit; } @@ -109,7 +109,7 @@ function _openid_normalize_url($url) { $normalized_url = $url; if (stristr($url, '://') === FALSE) { - $normalized_url = 'http://' . $url; + $normalized_url = 'http://'. $url; } if (substr_count($normalized_url, '/') < 3) { @@ -148,7 +148,7 @@ function _openid_encode_message($message) { if ($encoded_message != '') { $encoded_message .= '&'; } - $encoded_message .= rawurlencode(trim($parts[0])) . '=' . rawurlencode(trim($parts[1])); + $encoded_message .= rawurlencode(trim($parts[0])) .'='. rawurlencode(trim($parts[1])); } } @@ -203,7 +203,7 @@ function _openid_link_href($rel, $html) { * Pull the http-equiv attribute out of an html meta element */ function _openid_meta_httpequiv($equiv, $html) { - preg_match('||iU', $html, $matches); + preg_match('||iU', $html, $matches); if (isset($matches[1])) { preg_match('|content=["\']([^"]+)["\']|iU', $matches[1], $content); return $content[1]; @@ -224,8 +224,8 @@ function _openid_signature($association, $message_array, $keys_to_sign) { $sign_data = array(); foreach ($keys_to_sign as $key) { - if (isset($message_array['openid.' . $key])) { - $sign_data[$key] = $message_array['openid.' . $key]; + if (isset($message_array['openid.'. $key])) { + $sign_data[$key] = $message_array['openid.'. $key]; } } diff --git a/modules/system/system.install b/modules/system/system.install index 0a47882b2a306a73573e13851ac8bffafa46a592..80ed3c2da9da0e63b3b42aaa6f7d1ea572a5bf87 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -1299,7 +1299,7 @@ function system_update_151() { else { variable_set($menus[$loop]['menu_var'], $menus[$loop]['pid']); } - variable_del('phptemplate_' .$menus[$loop]['links_var']); + variable_del('phptemplate_'. $menus[$loop]['links_var']); variable_del('phptemplate_'. $menus[$loop]['links_var'] .'_more'); variable_del($menus[$loop]['toggle_var']); variable_del($menus[$loop]['more_var']); @@ -1334,7 +1334,7 @@ function system_update_152() { return $ret; } -function system_update_153(){ +function system_update_153() { $ret = array(); switch ($GLOBALS['db_type']) { case 'pgsql': @@ -1801,7 +1801,7 @@ function system_update_170() { function system_update_171() { $ret = array(); - $ret[] = update_sql('DELETE FROM {users_roles} WHERE rid IN ('. DRUPAL_ANONYMOUS_RID. ', '. DRUPAL_AUTHENTICATED_RID. ')'); + $ret[] = update_sql('DELETE FROM {users_roles} WHERE rid IN ('. DRUPAL_ANONYMOUS_RID .', '. DRUPAL_AUTHENTICATED_RID .')'); return $ret; } @@ -1995,7 +1995,7 @@ function _update_178_url_fix($text) { if (preg_match_all($pattern, $text, $matches)) { foreach ($matches[1] as $url) { if ($url != '' && !strstr($url, 'mailto:') && !strstr($url, '://') && !strstr($url, '../') && !strstr($url, './') && $url[0] != '/' && $url[0] != '#') { - $text = preg_replace('|'. $type .'\s*=\s*"'. preg_quote($url) .'\s*"|', $type. '="'.base_path(). $url .'"', $text); + $text = preg_replace('|'. $type .'\s*=\s*"'. preg_quote($url) .'\s*"|', $type .'="'. base_path() . $url .'"', $text); } } } diff --git a/modules/update/update.report.inc b/modules/update/update.report.inc index d4f3f70f0f370ef8484102c536cbe10ac882ce80..b3508cbccf96dd4f86e30b550f978d22c284912f 100644 --- a/modules/update/update.report.inc +++ b/modules/update/update.report.inc @@ -156,7 +156,7 @@ function theme_update_report($data) { $row .= "
\n"; if (!empty($project['extra'])) { - $row .= '
' ."\n"; + $row .= '
'."\n"; foreach ($project['extra'] as $key => $value) { $row .= '
'; $row .= check_plain($value['label']) .': '; diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine index ed34815a876893273736af9f52a8ad6da993d32f..4d638d18f20666d3bf1fda17302edc9791bab56c 100644 --- a/themes/engines/phptemplate/phptemplate.engine +++ b/themes/engines/phptemplate/phptemplate.engine @@ -7,7 +7,7 @@ */ function phptemplate_init($template) { - $file = dirname($template->filename) . '/template.php'; + $file = dirname($template->filename) .'/template.php'; if (file_exists($file)) { include_once "./$file"; }