Index: pathauto.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.install,v
retrieving revision 1.1.4.25
diff -u -p -r1.1.4.25 pathauto.install
--- pathauto.install	4 May 2008 22:59:38 -0000	1.1.4.25
+++ pathauto.install	5 May 2008 16:30:00 -0000
@@ -2,13 +2,9 @@
 // $Id: pathauto.install,v 1.1.4.25 2008/05/04 22:59:38 greggles Exp $
 
 /**
- *
  * @file Provides install, updated, and uninstall functions for pathauto.
- * 
  */
 
- 
- 
 /**
  * Implementation of hook_install().
  */
@@ -23,7 +19,8 @@ function pathauto_install() {
     variable_set('pathauto_taxonomy_2_pattern', '');
     variable_set('pathauto_taxonomy_1_pattern', '');
   }
-  else { // Node and user are required so we don't have to check
+  else {
+    // Node and user are required so we don't have to check
     variable_set('pathauto_modulelist', array('node', 'user'));
   }
   // Set the rest of the pathauto default variables
@@ -38,14 +35,14 @@ function pathauto_install() {
   variable_set('pathauto_node_page_pattern', '');
   variable_set('pathauto_node_pattern', 'content/[title-raw]');
   variable_set('pathauto_node_story_pattern', '');
-  variable_set("pathauto_punctuation_quotes", 0);
+  variable_set('pathauto_punctuation_quotes', 0);
   variable_set('pathauto_separator', '-');
   variable_set('pathauto_update_action', '2');
   variable_set('pathauto_user_bulkupdate', FALSE);
   variable_set('pathauto_user_pattern', 'users/[user-raw]');
   variable_set('pathauto_user_supportsfeeds', NULL);
   variable_set('pathauto_verbose', FALSE);
-  
+
   // Make sure we "replace hyphen with separator" by default
   variable_set('pathauto_punctuation_hyphen', 1); // 1 is replace
 
@@ -56,7 +53,7 @@ function pathauto_install() {
   switch ($GLOBALS['db_type']) {
     case 'pgsql':
       // Using pgsql<8.x?  Help at http://drupal.org/node/195044
-      db_query("ALTER TABLE {variable} ALTER name TYPE varchar(128)");
+      db_query('ALTER TABLE {variable} ALTER name TYPE varchar(128)');
       break;
     case 'mysql':
     case 'mysqli':
@@ -66,19 +63,18 @@ function pathauto_install() {
 
   // Clear the cache to get these to take effect.
   cache_clear_all();
-
 }
- 
+
 /**
  * Implementation of hook_uninstall().
  */
 function pathauto_uninstall() {
   // Delete the url_alias_extra if people have it
   if (db_table_exists('url_alias_extra')) {
-    db_query("DROP TABLE {url_alias_extra}");
+    db_query('DROP TABLE {url_alias_extra}');
   }
 
-  // Delete all the pathauto variables and then clear the variable cache  
+  // Delete all the pathauto variables and then clear the variable cache
   db_query("DELETE FROM {variable} WHERE name LIKE 'pathauto_%'");
   cache_clear_all('variables', 'cache');
 }
@@ -113,24 +109,19 @@ function pathauto_update_2() {
 
 /**
  * Delete the pathauto_node_supportsfeeds
- *
  */
 function pathauto_update_3() {
   // Do nothing, this update was a mistake
-  $items = array();
-  return $items;
+  return array();
 }
 
 /**
  * New style naming for the punctuation chars
- *
  */
 function pathauto_update_4() {
-  $quotes = variable_get('pathauto_quotes', 0);
-  variable_set("pathauto_punctuation_quotes", $quotes);
+  variable_set('pathauto_punctuation_quotes', variable_get('pathauto_quotes', 0));
   variable_del('pathauto_quotes');
-  $items = array();
-  return $items;
+  return array();
 }
 
 /**
@@ -139,16 +130,15 @@ function pathauto_update_4() {
  */
 function pathauto_update_5() {
   // Note: no longer done...see http://drupal.org/node/248031
-  $ret = array();
-  return $ret;
+  return array();
 }
 
 /**
- *  Remove some variables that are no longer used
+ * Remove some variables that are no longer used
  */
 function pathauto_update_6() {
   // Delete some unused variables
   db_query("DELETE FROM {variable} WHERE name LIKE 'pathauto_%_supportsfeeds'");
   cache_clear_all('variables', 'cache');
   return array();
-}
\ No newline at end of file
+}
