diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-10-02 16:19:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-10-02 16:19:23 +0000 |
commit | d2d93b4bd3740be11ba771a662fa8a63d76fe5a2 (patch) | |
tree | 301195782c85c77389067d8cd9ed47f6470811f2 /modules | |
parent | 4bb5080ebe210c5fc0e90549dcacfb088d4cbce3 (diff) | |
download | brdo-d2d93b4bd3740be11ba771a662fa8a63d76fe5a2.tar.gz brdo-d2d93b4bd3740be11ba771a662fa8a63d76fe5a2.tar.bz2 |
- Patch #173486 by scor: fixed code style issues.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/openid/openid.inc | 12 | ||||
-rw-r--r-- | modules/system/system.install | 8 | ||||
-rw-r--r-- | modules/update/update.report.inc | 2 |
3 files changed, 11 insertions, 11 deletions
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']) .': '; |