diff --git a/includes/common.inc b/includes/common.inc index 17a70c251ad9..51aefac5fcff 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 .= ''. "\n"; + $preprocessed .= ''."\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){ diff --git a/install.php b/install.php index 27b426d5930b..130e4b1e374c 100644 --- a/install.php +++ b/install.php @@ -348,7 +348,7 @@ function install_settings_form(&$form_state, $profile, $install_locale, $setting $form['errors'] = array(); $form['settings_file'] = array('#type' => 'value', '#value' => $settings_file); $form['_db_url'] = array('#type' => 'value'); - $form['#action'] = "install.php?profile=$profile" . ($install_locale ? "&locale=$install_locale" : ''); + $form['#action'] = "install.php?profile=$profile". ($install_locale ? "&locale=$install_locale" : ''); $form['#redirect'] = FALSE; } return $form; @@ -424,7 +424,7 @@ function install_settings_form_submit($form, &$form_state) { drupal_rewrite_settings($settings); // Continue to install profile step - install_goto("install.php?profile=$profile" . ($install_locale ? "&locale=$install_locale" : '')); + install_goto("install.php?profile=$profile". ($install_locale ? "&locale=$install_locale" : '')); } /** diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 7e3ddb751069..ea4bdfa50c41 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -362,7 +362,7 @@ function comment_new_page_count($num_comments, $new_replies, $node) { $pageno = $count / $comments_per_page; } if ($pageno >= 1) { - $pagenum = "page=" . intval($pageno); + $pagenum = "page=". intval($pageno); } return $pagenum; } diff --git a/modules/node/node.module b/modules/node/node.module index bfe61462b0d0..03fb05f1c149 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -663,10 +663,10 @@ function node_load($param = array(), $revision = NULL, $reset = NULL) { // No db_rewrite_sql is applied so as to get complete indexing for search. if ($revision) { array_unshift($arguments, $revision); - $node = db_fetch_object(db_query('SELECT '. $fields. ' FROM {node} n INNER JOIN {users} u ON u.uid = n.uid INNER JOIN {node_revisions} r ON r.nid = n.nid AND r.vid = %d WHERE '. $cond, $arguments)); + $node = db_fetch_object(db_query('SELECT '. $fields .' FROM {node} n INNER JOIN {users} u ON u.uid = n.uid INNER JOIN {node_revisions} r ON r.nid = n.nid AND r.vid = %d WHERE '. $cond, $arguments)); } else { - $node = db_fetch_object(db_query('SELECT '. $fields. ' FROM {node} n INNER JOIN {users} u ON u.uid = n.uid INNER JOIN {node_revisions} r ON r.vid = n.vid WHERE '. $cond, $arguments)); + $node = db_fetch_object(db_query('SELECT '. $fields .' FROM {node} n INNER JOIN {users} u ON u.uid = n.uid INNER JOIN {node_revisions} r ON r.vid = n.vid WHERE '. $cond, $arguments)); } if ($node && $node->nid) { diff --git a/modules/openid/openid.inc b/modules/openid/openid.inc index 8eeaedd55ee5..1eb67734104b 100644 --- a/modules/openid/openid.inc +++ b/modules/openid/openid.inc @@ -41,7 +41,7 @@ function openid_redirect_http($url, $message) { * Creates a js auto-submit redirect for (for the 2.x protocol) */ function openid_redirect($url, $message) { - $output = '