Index: install.php =================================================================== RCS file: /cvs/drupal/drupal/install.php,v retrieving revision 1.135 diff -u -p -r1.135 install.php --- install.php 11 Oct 2008 18:20:53 -0000 1.135 +++ install.php 12 Oct 2008 00:44:11 -0000 @@ -940,7 +940,7 @@ function install_check_requirements($pro } elseif ($writable) { $requirements['settings file'] = array( - 'title' => st('Settings file'), + 'title' => st('Settings file'), 'value' => st('Settings file is writable.'), ); } Index: update.php =================================================================== RCS file: /cvs/drupal/drupal/update.php,v retrieving revision 1.262 diff -u -p -r1.262 update.php --- update.php 10 Oct 2008 07:35:51 -0000 1.262 +++ update.php 12 Oct 2008 00:44:12 -0000 @@ -329,7 +329,7 @@ function update_finished($success, $resu $_SESSION['update_results'] = $results; $_SESSION['update_success'] = $success; $_SESSION['updates_remaining'] = $operations; - + // Now that the update is done, we can disable site maintenance if it was // previously turned off. if (isset($_SESSION['site_offline']) && $_SESSION['site_offline'] == FALSE) { Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.805 diff -u -p -r1.805 common.inc --- includes/common.inc 11 Oct 2008 21:53:36 -0000 1.805 +++ includes/common.inc 12 Oct 2008 00:44:19 -0000 @@ -2704,7 +2704,7 @@ function drupal_system_listing($mask, $d /** * Hands off structured Drupal arrays to type-specific *_alter implementations. - * + * * This dispatch function hands off structured Drupal arrays to type-specific * *_alter implementations. It ensures a consistent interface for all altering * operations. Index: includes/form.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/form.inc,v retrieving revision 1.293 diff -u -p -r1.293 form.inc --- includes/form.inc 11 Oct 2008 21:10:59 -0000 1.293 +++ includes/form.inc 12 Oct 2008 00:44:23 -0000 @@ -1761,7 +1761,7 @@ function form_process_radios($element) { /** * Add input format selector to text elements with the #input_format property. * - * The #input_format property should be the ID of an input format, found in + * The #input_format property should be the ID of an input format, found in * {filter_formats}.format, which gets passed to filter_form(). * * If the property #input_format is set, the form element will be expanded into @@ -1777,7 +1777,7 @@ function form_process_radios($element) { * '#type' => 'textarea', * '#title' => t('Body'), * '#input_format' => isset($node->format) ? $node->format : FILTER_FORMAT_DEFAULT, - * ); + * ); * @endcode * * Becomes: Index: includes/install.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/install.inc,v retrieving revision 1.73 diff -u -p -r1.73 install.inc --- includes/install.inc 11 Oct 2008 22:46:21 -0000 1.73 +++ includes/install.inc 12 Oct 2008 00:44:25 -0000 @@ -88,7 +88,7 @@ function drupal_load_updates() { * @param $module * A module name. * @return - * If the module has updates, an array of available updates sorted by version. + * If the module has updates, an array of available updates sorted by version. * Otherwise, FALSE. */ function drupal_get_schema_versions($module) { @@ -105,10 +105,10 @@ function drupal_get_schema_versions($mod if (count($updates) == 0) { return FALSE; } - + // Make sure updates are run in numeric order, not in definition order. sort($updates, SORT_NUMERIC); - + return $updates; } @@ -231,7 +231,7 @@ function drupal_detect_database_types() unset($databases['mysql']); $databases = array('mysql' => $mysql_database) + $databases; } - + return $databases; } @@ -465,7 +465,7 @@ function drupal_verify_profile($profile, $missing_modules = array_diff($module_list, $present_modules); $requirements = array(); - + if (count($missing_modules)) { $modules = array(); foreach ($missing_modules as $module) { @@ -543,7 +543,7 @@ function _drupal_install_module($module) */ function drupal_install_init_database() { static $included = FALSE; - + if (!$included) { $connection_info = Database::getConnectionInfo(); $driver = $connection_info['default']['driver']; @@ -567,7 +567,7 @@ function drupal_install_system() { require_once DRUPAL_ROOT . '/' . $system_path . '/system.install'; drupal_install_init_database(); module_invoke('system', 'install'); - + $system_versions = drupal_get_schema_versions('system'); $system_version = $system_versions ? max($system_versions) : SCHEMA_INSTALLED; db_query("INSERT INTO {system} (filename, name, type, owner, status, bootstrap, schema_version) VALUES('%s', '%s', '%s', '%s', %d, %d, %d)", $system_path . '/system.module', 'system', 'module', '', 1, 0, $system_version); @@ -827,7 +827,7 @@ function drupal_install_fix_file($file, /** - * Send the user to a different installer page. + * Send the user to a different installer page. * * This issues an on-site HTTP redirect. Messages (and errors) are erased. * @@ -926,7 +926,7 @@ function drupal_check_profile($profile) * Extract highest severity from requirements array. * * @param $requirements - * An array of requirements, in the same format as is returned by + * An array of requirements, in the same format as is returned by * hook_requirements(). * @return * The highest severity in the array. Index: includes/locale.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/locale.inc,v retrieving revision 1.188 diff -u -p -r1.188 locale.inc --- includes/locale.inc 9 Oct 2008 00:02:28 -0000 1.188 +++ includes/locale.inc 12 Oct 2008 00:44:26 -0000 @@ -97,7 +97,7 @@ function theme_locale_languages_overview $header = array(array('data' => t('English name')), array('data' => t('Native name')), array('data' => t('Code')), array('data' => t('Direction')), array('data' => t('Enabled')), array('data' => t('Default')), array('data' => t('Weight')), array('data' => t('Operations'))); $output = theme('table', $header, $rows, array('id' => 'language-order')); $output .= drupal_render($form); - + drupal_add_tabledrag('language-order', 'order', 'sibling', 'language-order-weight'); return $output; Index: includes/menu.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/menu.inc,v retrieving revision 1.293 diff -u -p -r1.293 menu.inc --- includes/menu.inc 8 Oct 2008 01:42:16 -0000 1.293 +++ includes/menu.inc 12 Oct 2008 00:44:29 -0000 @@ -1890,7 +1890,7 @@ function _menu_delete_item($item, $force * - plid The mlid of the parent. * - router_path The path of the relevant router item. * @return - * The mlid of the saved menu link, or FALSE if the menu link could not be + * The mlid of the saved menu link, or FALSE if the menu link could not be * saved. */ function menu_link_save(&$item) { @@ -1962,7 +1962,7 @@ function menu_link_save(&$item) { if (!$existing_item) { db_query("INSERT INTO {menu_links} ( - menu_name, plid, link_path, + menu_name, plid, link_path, hidden, external, has_children, expanded, weight, module, link_title, options, Index: includes/session.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/session.inc,v retrieving revision 1.61 diff -u -p -r1.61 session.inc --- includes/session.inc 11 Oct 2008 16:37:38 -0000 1.61 +++ includes/session.inc 12 Oct 2008 00:44:30 -0000 @@ -222,7 +222,7 @@ function drupal_session_destroy_uid($uid * * @param int $lifetime * The value of session.gc_maxlifetime, passed by PHP. - * Sessions not updated for more than $lifetime seconds will be removed. + * Sessions not updated for more than $lifetime seconds will be removed. */ function _sess_gc($lifetime) { // Be sure to adjust 'php_value session.gc_maxlifetime' to a large enough Index: includes/database/database.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/database/database.inc,v retrieving revision 1.12 diff -u -p -r1.12 database.inc --- includes/database/database.inc 8 Oct 2008 11:21:37 -0000 1.12 +++ includes/database/database.inc 12 Oct 2008 00:44:34 -0000 @@ -552,7 +552,7 @@ abstract class DatabaseConnection extend * A database query result resource, or NULL if the query was not executed * correctly. */ - abstract public function queryRange($query, Array $args, $from, $count, Array $options); + abstract public function queryRange($query, Array $args, $from, $count, Array $options); /** * Runs a SELECT query and stores its results in a temporary table. @@ -577,7 +577,7 @@ abstract class DatabaseConnection extend * A database query result resource, or FALSE if the query was not executed * correctly. */ - abstract function queryTemporary($query, Array $args, $tablename); + abstract function queryTemporary($query, Array $args, $tablename); /** * Returns the type of database driver. Index: includes/database/query.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/database/query.inc,v retrieving revision 1.5 diff -u -p -r1.5 query.inc --- includes/database/query.inc 6 Oct 2008 14:39:40 -0000 1.5 +++ includes/database/query.inc 12 Oct 2008 00:44:37 -0000 @@ -563,7 +563,7 @@ class MergeQuery extends Query { * The called object. */ public function update(Array $fields, Array $values = array()) { - if ($values) { + if ($values) { $fields = array_combine($fields, $values); } $this->updateFields = $fields; Index: modules/blogapi/blogapi.module =================================================================== RCS file: /cvs/drupal/drupal/modules/blogapi/blogapi.module,v retrieving revision 1.131 diff -u -p -r1.131 blogapi.module --- modules/blogapi/blogapi.module 11 Oct 2008 03:08:09 -0000 1.131 +++ modules/blogapi/blogapi.module 12 Oct 2008 00:44:39 -0000 @@ -328,7 +328,7 @@ function blogapi_blogger_get_post($appke * TRUE if no error, or the blogapi_error(). */ function blogapi_status_error_check($node, $original_status) { - + $node = (object) $node; $node_type_default = variable_get('node_options_'. $node->type, array('status', 'promote')); Index: modules/book/book.module =================================================================== RCS file: /cvs/drupal/drupal/modules/book/book.module,v retrieving revision 1.471 diff -u -p -r1.471 book.module --- modules/book/book.module 9 Oct 2008 15:15:50 -0000 1.471 +++ modules/book/book.module 12 Oct 2008 00:44:41 -0000 @@ -324,11 +324,11 @@ function book_form_alter(&$form, $form_s $form['book']['pick-book'] = array( '#type' => 'submit', '#value' => t('Change book (update list of parents)'), - // Submit the node form so the parent select options get updated. - // This is typically only used when JS is disabled. Since the parent options - // won't be changed via AJAX, a button is provided in the node form to submit - // the form and generate options in the parent select corresponding to the - // selected book. This is similar to what happens during a node preview. + // Submit the node form so the parent select options get updated. + // This is typically only used when JS is disabled. Since the parent options + // won't be changed via AJAX, a button is provided in the node form to submit + // the form and generate options in the parent select corresponding to the + // selected book. This is similar to what happens during a node preview. '#submit' => array('node_form_submit_build_node'), '#weight' => 20, ); Index: modules/comment/comment.test =================================================================== RCS file: /cvs/drupal/drupal/modules/comment/comment.test,v retrieving revision 1.15 diff -u -p -r1.15 comment.test --- modules/comment/comment.test 24 Sep 2008 22:38:20 -0000 1.15 +++ modules/comment/comment.test 12 Oct 2008 00:44:41 -0000 @@ -308,7 +308,7 @@ class CommentInterfaceTest extends Comme $this->assertText('This discussion is closed', t('Posting to node with comments disabled')); $this->assertNoField('edit-comment', t('Comment body field found.')); - // Attempt to post to node with read-only comments. + // Attempt to post to node with read-only comments. $this->node = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1, 'comment' => COMMENT_NODE_READ_ONLY)); $this->assertTrue($this->node, t('Article node created.')); $this->drupalGet('comment/reply/' . $this->node->nid); @@ -449,14 +449,14 @@ class CommentAnonymous extends CommentHe $this->drupalLogin($this->admin_user); $this->setAnonymousUserComment(FALSE, FALSE); - // Attempt to view comments while disallowed. + // Attempt to view comments while disallowed. // NOTE: if authenticated user has permission to post comments, then a // "Login or register to post comments" type link may be shown. $this->drupalLogout(); $this->drupalGet('node/' . $this->node->nid); $this->assertNoRaw('
' . t('Deleted') . ''), 'ins' => array( t('Inserted'), '' . t('Inserted') . ''), - // Assumes and describes li. + // Assumes and describes li. 'ol' => array( t('Ordered list - use the <li> to begin each list item'), '- ' . t('First item') . '
- ' . t('Second item') . '
'), 'ul' => array( t('Unordered list - use the <li> to begin each list item'), '- ' . t('First item') . '
- ' . t('Second item') . '
'), 'li' => NULL, Index: modules/forum/forum.module =================================================================== RCS file: /cvs/drupal/drupal/modules/forum/forum.module,v retrieving revision 1.468 diff -u -p -r1.468 forum.module --- modules/forum/forum.module 11 Oct 2008 21:11:00 -0000 1.468 +++ modules/forum/forum.module 12 Oct 2008 00:44:41 -0000 @@ -156,9 +156,9 @@ function forum_init() { } /** - * _forum_nodeapi_check_node_type - * - * @param mixed $node + * _forum_nodeapi_check_node_type + * + * @param mixed $node * @param mixed $vocabulary * @access protected * @return bool @@ -235,7 +235,7 @@ function forum_nodeapi_prepare(&$node, $ /** * Implementation of hook_nodeapi_validate(). - * + * * Check in particular that only a "leaf" term in the associated taxonomy. */ function forum_nodeapi_validate(&$node, $teaser, $page) { Index: modules/node/node.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.admin.inc,v retrieving revision 1.26 diff -u -p -r1.26 node.admin.inc --- modules/node/node.admin.inc 15 Sep 2008 20:48:08 -0000 1.26 +++ modules/node/node.admin.inc 12 Oct 2008 00:44:41 -0000 @@ -472,8 +472,8 @@ function node_admin_nodes() { $header[] = array('data' => t('Operations')); $form['header'] = array( - '#type' => 'value', - '#value' => $header, + '#type' => 'value', + '#value' => $header, ); // Build the query and load the nodes we want to display. Index: modules/node/node.test =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.test,v retrieving revision 1.7 diff -u -p -r1.7 node.test --- modules/node/node.test 11 Oct 2008 18:29:20 -0000 1.7 +++ modules/node/node.test 12 Oct 2008 00:44:41 -0000 @@ -431,7 +431,7 @@ class NodeTitleXSSTestCase extends Drupa * Implementation of getInfo(). */ function getInfo() { - return array( + return array( 'name' => t('Node title XSS filtering'), 'description' => t('Create a node with dangerous tags in its title and test that they are escaped.'), 'group' => t('Node'), Index: modules/openid/openid.js =================================================================== RCS file: /cvs/drupal/drupal/modules/openid/openid.js,v retrieving revision 1.6 diff -u -p -r1.6 openid.js --- modules/openid/openid.js 30 Jan 2008 22:11:22 -0000 1.6 +++ modules/openid/openid.js 12 Oct 2008 00:44:41 -0000 @@ -14,8 +14,8 @@ Drupal.behaviors.openid = function (cont $("li.openid-link:not(.openid-processed)", context) .addClass('openid-processed') .click( function() { - $loginElements.hide(); - $openidElements.css("display", "block"); + $loginElements.hide(); + $openidElements.css("display", "block"); // Remove possible error message. $("#edit-name, #edit-pass").removeClass("error"); $("div.messages.error").hide(); @@ -26,8 +26,8 @@ Drupal.behaviors.openid = function (cont $("li.user-link:not(.openid-processed)", context) .addClass('openid-processed') .click(function() { - $openidElements.hide(); - $loginElements.css("display", "block"); + $openidElements.hide(); + $loginElements.css("display", "block"); // Clear OpenID Identifier field and remove possible error message. $("#edit-openid-identifier").val('').removeClass("error"); $("div.messages.error").css("display", "block"); Index: modules/search/search.module =================================================================== RCS file: /cvs/drupal/drupal/modules/search/search.module,v retrieving revision 1.268 diff -u -p -r1.268 search.module --- modules/search/search.module 9 Oct 2008 15:15:52 -0000 1.268 +++ modules/search/search.module 12 Oct 2008 00:44:43 -0000 @@ -579,8 +579,8 @@ function search_index($sid, $type, $text // Insert results into search index foreach ($results[0] as $word => $score) { - // If a word already exists in the database, its score gets increased - // appropriately. If not, we create a new record with the appropriate + // If a word already exists in the database, its score gets increased + // appropriately. If not, we create a new record with the appropriate // starting score. db_merge('search_index')->key(array( 'word' => $word, Index: modules/simpletest/drupal_web_test_case.php =================================================================== RCS file: /cvs/drupal/drupal/modules/simpletest/drupal_web_test_case.php,v retrieving revision 1.47 diff -u -p -r1.47 drupal_web_test_case.php --- modules/simpletest/drupal_web_test_case.php 9 Oct 2008 02:49:36 -0000 1.47 +++ modules/simpletest/drupal_web_test_case.php 12 Oct 2008 00:44:46 -0000 @@ -467,7 +467,7 @@ class DrupalWebTestCase { // Make sure type is valid. if (in_array($type, array('binary', 'html', 'image', 'javascript', 'php', 'sql', 'text'))) { - // Use original file directory instead of one created during setUp(). + // Use original file directory instead of one created during setUp(). $path = $this->original_file_directory . '/simpletest'; $files = file_scan_directory($path, '/' . $type . '\-.*/'); Index: modules/simpletest/tests/database_test.install =================================================================== RCS file: /cvs/drupal/drupal/modules/simpletest/tests/database_test.install,v retrieving revision 1.3 diff -u -p -r1.3 database_test.install --- modules/simpletest/tests/database_test.install 8 Oct 2008 18:34:30 -0000 1.3 +++ modules/simpletest/tests/database_test.install 12 Oct 2008 00:44:46 -0000 @@ -30,7 +30,8 @@ function database_test_schema() { 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, - 'default' => 0), + 'default' => 0, + ), 'job' => array( 'description' => "The person's job", 'type' => 'varchar', @@ -59,7 +60,7 @@ function database_test_schema() { 'length' => 255, 'not null' => TRUE, 'default' => '', - ), + ), 'age' => array( 'description' => "The person's age", 'type' => 'int', @@ -104,7 +105,7 @@ function database_test_schema() { 'description' => 'Simple unique ID.', 'type' => 'serial', 'not null' => TRUE, - ), + ), 'blob1' => array( 'description' => 'A dummy BLOB field.', 'type' => 'blob', Index: modules/simpletest/tests/database_test.test =================================================================== RCS file: /cvs/drupal/drupal/modules/simpletest/tests/database_test.test,v retrieving revision 1.9 diff -u -p -r1.9 database_test.test --- modules/simpletest/tests/database_test.test 28 Sep 2008 21:52:08 -0000 1.9 +++ modules/simpletest/tests/database_test.test 12 Oct 2008 00:44:48 -0000 @@ -351,7 +351,7 @@ class DatabaseInsertTestCase extends Dat * Test that we can insert multiple records in one query object. */ function testMultiInsert() { - try { + try { $num_records_before = (int) db_query("SELECT COUNT(*) FROM {test}")->fetchField(); $query = db_insert('test'); @@ -379,7 +379,7 @@ class DatabaseInsertTestCase extends Dat $this->assertIdentical($saved_age, '31', t('Can retrieve by name.')); $saved_age = db_query("SELECT age FROM {test} WHERE name = :name", array(':name' => 'Moe'))->fetchField(); $this->assertIdentical($saved_age, '32', t('Can retrieve by name.')); - } + } catch (Exception $e) { $this->assertTrue(FALSE, $e->getMessage()); } @@ -419,7 +419,7 @@ class DatabaseInsertTestCase extends Dat $this->assertIdentical($saved_age, '31', t('Can retrieve by name.')); $saved_age = db_query("SELECT age FROM {test} WHERE name = :name", array(':name' => 'Moe'))->fetchField(); $this->assertIdentical($saved_age, '32', t('Can retrieve by name.')); - } + } catch (Exception $e) { $this->assertTrue(FALSE, $e->getMessage()); } @@ -453,7 +453,7 @@ class DatabaseInsertTestCase extends Dat ->execute(); $this->assertIdentical($id, '5', t('Auto-increment ID returned successfully.')); - } + } catch (Exception $e) { $this->assertTrue(FALSE, $e->getMessage()); } Index: modules/simpletest/tests/xmlrpc.test =================================================================== RCS file: /cvs/drupal/drupal/modules/simpletest/tests/xmlrpc.test,v retrieving revision 1.4 diff -u -p -r1.4 xmlrpc.test --- modules/simpletest/tests/xmlrpc.test 17 Sep 2008 16:49:41 -0000 1.4 +++ modules/simpletest/tests/xmlrpc.test 12 Oct 2008 00:44:48 -0000 @@ -29,13 +29,15 @@ class XMLRPCValidator1IncTestCase extend mt_srand(); - $array_1 = array(array('curly' => mt_rand(-100,100)), - array('curly' => mt_rand(-100,100)), - array('larry' => mt_rand(-100,100)), - array('larry' => mt_rand(-100,100)), - array('moe' => mt_rand(-100,100)), - array('moe' => mt_rand(-100,100)), - array('larry' => mt_rand(-100,100))); + $array_1 = array( + array('curly' => mt_rand(-100,100)), + array('curly' => mt_rand(-100,100)), + array('larry' => mt_rand(-100,100)), + array('larry' => mt_rand(-100,100)), + array('moe' => mt_rand(-100,100)), + array('moe' => mt_rand(-100,100)), + array('larry' => mt_rand(-100,100)), + ); shuffle($array_1); $l_res_1 = xmlrpc_test_arrayOfStructsTest($array_1); $r_res_1 = xmlrpc($xml_url, 'validator1.arrayOfStructsTest', $array_1); Index: modules/system/system.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.admin.inc,v retrieving revision 1.98 diff -u -p -r1.98 system.admin.inc --- modules/system/system.admin.inc 11 Oct 2008 22:46:22 -0000 1.98 +++ modules/system/system.admin.inc 12 Oct 2008 00:44:53 -0000 @@ -2097,10 +2097,10 @@ function theme_system_modules_fieldset($ // Add the description, along with any dependencies. $description .= drupal_render($module['description']); if ($module['#dependencies']) { - $description .= '