summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-10-19 10:19:03 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-10-19 10:19:03 +0000
commitb64adf07c82087816dc5c4b37c13c0ef4d69223c (patch)
tree9bc28ead5e085e252a445098a0038621ae6d1b53 /includes
parentccb0c0a78f6f9e1029f471de67b0095755b91c8c (diff)
downloadbrdo-b64adf07c82087816dc5c4b37c13c0ef4d69223c.tar.gz
brdo-b64adf07c82087816dc5c4b37c13c0ef4d69223c.tar.bz2
#182645 by scor: clean up concatenations to be in line with core coding standards
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 17a70c251..51aefac5f 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1905,7 +1905,7 @@ function drupal_get_js($scope = 'header', $javascript = NULL) {
if ($is_writable && $preprocess_js && count($files) > 0) {
$filename = md5(serialize($files)) .'.js';
$preprocess_file = drupal_build_js_cache($files, $filename);
- $preprocessed .= '<script type="text/javascript" src="'. base_path() . $preprocess_file .'"></script>'. "\n";
+ $preprocessed .= '<script type="text/javascript" src="'. base_path() . $preprocess_file .'"></script>'."\n";
}
// Keep the order of JS files consistent as some are preprocessed and others are not.
@@ -2134,7 +2134,7 @@ function _packer_replacement($arguments, $regexps = NULL, $escape = NULL) {
}
else {
$delete = !$escape || strpos($arguments[$i], '\\') === FALSE
- ? '' : "\x01" . $arguments[$i] . "\x01";
+ ? '' : "\x01". $arguments[$i] ."\x01";
return $delete . $replacement;
}
// skip over references to sub-expressions
@@ -3160,7 +3160,7 @@ function drupal_write_record($table, &$object, $update = array()) {
// Build the SQL.
$query = '';
if (!count($update)) {
- $query = "INSERT INTO {". $table ."} (" . implode(', ', $fields) . ') VALUES (' . implode(', ', $placeholders) . ')';
+ $query = "INSERT INTO {". $table ."} (". implode(', ', $fields) .') VALUES ('. implode(', ', $placeholders) .')';
$return = SAVED_NEW;
}
else {
@@ -3169,7 +3169,7 @@ function drupal_write_record($table, &$object, $update = array()) {
if ($query) {
$query .= ', ';
}
- $query .= $field . ' = ' . $placeholders[$id];
+ $query .= $field .' = '. $placeholders[$id];
}
foreach ($update as $key){