summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-10-02 16:19:23 +0000
committerDries Buytaert <dries@buytaert.net>2007-10-02 16:19:23 +0000
commitd2d93b4bd3740be11ba771a662fa8a63d76fe5a2 (patch)
tree301195782c85c77389067d8cd9ed47f6470811f2
parent4bb5080ebe210c5fc0e90549dcacfb088d4cbce3 (diff)
downloadbrdo-d2d93b4bd3740be11ba771a662fa8a63d76fe5a2.tar.gz
brdo-d2d93b4bd3740be11ba771a662fa8a63d76fe5a2.tar.bz2
- Patch #173486 by scor: fixed code style issues.
-rw-r--r--includes/common.inc10
-rw-r--r--modules/openid/openid.inc12
-rw-r--r--modules/system/system.install8
-rw-r--r--modules/update/update.report.inc2
-rw-r--r--themes/engines/phptemplate/phptemplate.engine2
5 files changed, 17 insertions, 17 deletions
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 .= '<link type="text/css" rel="stylesheet" media="'. $media .'" href="'. base_path() . $file .'" />'."\n";
}
else {
- $output .= '<link type="text/css" rel="stylesheet" media="'. $media .'" href="'. base_path() . $file . '" />'."\n";
+ $output .= '<link type="text/css" rel="stylesheet" media="'. $media .'" href="'. base_path() . $file .'" />'."\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 1e968c103..8eeaedd55 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('|<meta\s+http-equiv=["\']' . $equiv . '["\'](.*)/?>|iU', $html, $matches);
+ preg_match('|<meta\s+http-equiv=["\']'. $equiv .'["\'](.*)/?>|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 0a47882b2..80ed3c2da 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 d4f3f70f0..b3508cbcc 100644
--- a/modules/update/update.report.inc
+++ b/modules/update/update.report.inc
@@ -156,7 +156,7 @@ function theme_update_report($data) {
$row .= "<div class=\"info\">\n";
if (!empty($project['extra'])) {
- $row .= '<div class="extra">' ."\n";
+ $row .= '<div class="extra">'."\n";
foreach ($project['extra'] as $key => $value) {
$row .= '<div class="'. $value['class'] .'">';
$row .= check_plain($value['label']) .': ';
diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine
index ed34815a8..4d638d18f 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";
}