Index: votingapi.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/votingapi/Attic/votingapi.admin.inc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 votingapi.admin.inc
--- votingapi.admin.inc	19 Sep 2008 01:51:48 -0000	1.1.2.1
+++ votingapi.admin.inc	30 Sep 2008 11:13:23 -0000
@@ -2,6 +2,11 @@
 // $Id: votingapi.admin.inc,v 1.1.2.1 2008/09/19 01:51:48 eaton Exp $
 
 /**
+ * @file
+ * Configuration forms and helper functions for VotingAPI module.
+ */
+
+/**
  * Administrative settings for VotingAPI.
  */
 function votingapi_settings_form($form_state) {
@@ -89,16 +94,16 @@ function votingapi_generate_votes($node_
 
   $uids = devel_get_users();
   $nids = array();
-  
+
   $sql  = "SELECT n.nid, n.created FROM {node} n ";
   $sql .= "WHERE n.type IN (". join(', ', array_fill(1, count($node_types), "'%s'")) . ") ";
   $sql .= "ORDER BY n.created DESC";
-  
+
   $results = db_query($sql, $node_types);
   while ($node = db_fetch_array($results)) {
     $nids[$node['nid']] = $node['created'];
   }
-  
+
   foreach ($nids as $nid => $timestamp) {
     _votingapi_cast_votes($nid, $timestamp, $uids, $vote_type);
   }
Index: votingapi.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/votingapi/votingapi.install,v
retrieving revision 1.21.4.4
diff -u -p -r1.21.4.4 votingapi.install
--- votingapi.install	9 Apr 2008 00:54:19 -0000	1.21.4.4
+++ votingapi.install	30 Sep 2008 11:13:23 -0000
@@ -1,7 +1,11 @@
 <?php
-
 // $Id: votingapi.install,v 1.21.4.4 2008/04/09 00:54:19 eaton Exp $
 
+/**
+ * @file
+ * Installation file for VotingAPI module.
+ */
+
 function votingapi_schema() {
   $schema['votingapi_vote'] = array(
     'fields' => array(
@@ -198,11 +202,11 @@ function votingapi_update_6() {
 function votingapi_update_7() {
   // There are quite a few changes. Let's just take the easy way and nuke this puppy.
   // Nothing has been using the tables up to this point, anyhow.
-  
+
   $ret[] = update_sql("DROP TABLE {votingapi_action_set}");
   $ret[] = update_sql("DROP TABLE {votingapi_action_condition}");
   $ret[] = update_sql("DROP TABLE {votingapi_action}");
-  
+
   $ret[] = update_sql("CREATE TABLE {votingapi_action_set} (
       name varchar(64) NOT NULL,
       parent_name varchar(64) default NULL,
@@ -229,7 +233,7 @@ function votingapi_update_7() {
       parent_name varchar(64) NOT NULL,
       aid varchar(255) NOT NULL
     ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
-    
+
   return $ret;
 }
 
Index: votingapi.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/votingapi/votingapi.module,v
retrieving revision 1.46.2.13
diff -u -p -r1.46.2.13 votingapi.module
--- votingapi.module	19 Sep 2008 01:51:48 -0000	1.46.2.13
+++ votingapi.module	30 Sep 2008 11:13:23 -0000
@@ -1,5 +1,5 @@
 <?php
-/* $Id: votingapi.module,v 1.46.2.13 2008/09/19 01:51:48 eaton Exp $ */
+// $Id: votingapi.module,v 1.46.2.13 2008/09/19 01:51:48 eaton Exp $
 
 /**
  * @file
@@ -12,7 +12,7 @@
  */
 
 /**
- * Implementation of hook_menu.
+ * Implementation of hook_menu().
  */
 function votingapi_menu() {
   $items = array();
@@ -42,14 +42,14 @@ function votingapi_menu() {
 }
 
 /**
- * Implementation of hook_perm.
+ * Implementation of hook_perm().
  */
 function votingapi_perm() {
   return array('administer voting api');
 }
 
 /**
- * Implementation of hook_views_api.
+ * Implementation of hook_views_api().
  */
 function votingapi_views_api() {
   return array(
@@ -59,8 +59,9 @@ function votingapi_views_api() {
 }
 
 /**
- * Implementation of hook_cron. Allows db-intensive recalculations to be
- * deferred until cron-time.
+ * Implementation of hook_cron().
+ *
+ * Allows db-intensive recalculations to be deferred until cron-time.
  */
 function votingapi_cron() {
   if (variable_get('votingapi_calculation_schedule', 'immediate') == 'cron') {
@@ -130,7 +131,7 @@ function votingapi_set_votes(&$votes, $c
   if (!isset($criteria)) {
     // If the calling function didn't explicitly set criteria for vote deletion,
     // build up the delete queries here.
-    foreach($votes as $vote) {
+    foreach ($votes as $vote) {
       $tmp = votingapi_current_user_identifier();
       $tmp += $vote;
       votingapi_delete_votes(votingapi_select_votes($tmp));
@@ -141,12 +142,12 @@ function votingapi_set_votes(&$votes, $c
     if (!empty($criteria['content_id'])) {
       $criteria = array($criteria);
     }
-    foreach($criteria as $c) {
+    foreach ($criteria as $c) {
       votingapi_delete_votes(votingapi_select_votes($c));
     }
   }
 
-  foreach($votes as $key => $vote) {
+  foreach ($votes as $key => $vote) {
     _votingapi_prep_vote($vote);
     $votes[$key] = $vote; // Is this needed? Check to see how PHP4 handles refs.
   }
@@ -154,12 +155,12 @@ function votingapi_set_votes(&$votes, $c
   // Cast the actual votes, inserting them into the table.
   votingapi_add_votes($votes);
 
-  foreach($votes as $vote) {
+  foreach ($votes as $vote) {
     $touched[$vote['content_type']][$vote['content_id']] = TRUE;
   }
 
   if (variable_get('votingapi_calculation_schedule', 'immediate') != 'cron') {
-    foreach($touched as $type => $ids) {
+    foreach ($touched as $type => $ids) {
       foreach ($ids as $id => $bool) {
         $touched[$type][$id] = votingapi_recalculate_results($type, $id);
       }
@@ -521,9 +522,11 @@ function _votingapi_query($table = 'vote
   $args = array();
   if (!empty($criteria['vote_id'])) {
     _votingapi_query_builder($alias . 'vote_id', $criteria['vote_id'], $query, $args);
-  } elseif (!empty($criteria['vote_cache_id'])) {
+  }
+  elseif (!empty($criteria['vote_cache_id'])) {
     _votingapi_query_builder($alias . 'vote_cache_id', $criteria['vote_cache_id'], $query, $args);
-  } else {
+  }
+  else {
     _votingapi_query_builder($alias . 'content_type', $criteria['content_type'], $query, $args, TRUE);
     _votingapi_query_builder($alias . 'content_id', $criteria['content_id'], $query, $args);
     _votingapi_query_builder($alias . 'value_type', $criteria['value_type'], $query, $args, TRUE);
@@ -562,7 +565,8 @@ function _votingapi_query_builder($name,
         $query .= " AND $name IN (". array_fill(1, count($value), "%d") .")";
         $args += $value;
       }
-    } else {
+    }
+    else {
       if ($col_is_string) {
         $query .= " AND $name = '%s'";
         $args[] = $value;
Index: tests/votingapi.test
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/votingapi/tests/Attic/votingapi.test,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 votingapi.test
--- tests/votingapi.test	16 Sep 2008 19:55:10 -0000	1.1.2.1
+++ tests/votingapi.test	30 Sep 2008 11:13:23 -0000
@@ -1,4 +1,11 @@
 <?php
+// $Id$
+
+/**
+ * @file
+ * Test file for VotingAPI module.
+ */
+
 class VotingapiTestCase extends DrupalWebTestCase {
   /**
    * Implementation of getInfo().
@@ -9,7 +16,7 @@ class VotingapiTestCase extends DrupalWe
       'desc' => t('Voting API'),
       'group' => t('Voting API Tests'));
   }
-  
+
   function setUp() {
     parent::setUp('votingapi');
     // Create a new page
@@ -26,16 +33,16 @@ class VotingapiTestCase extends DrupalWe
     $node->title = t('Node @id', array('@id' => $node->nid));
     node_save($node);
   }
-  
+
   function tearDown() {
-    $nid = variable_get('votingapi_nid1', null);
+    $nid = variable_get('votingapi_nid1', NULL);
     if ($nid) {
       node_delete($nid);
       variable_del('votingapi_nid1');
     }
     parent::tearDown();
   }
-  
+
   /**
    * Ensure that the optional fields are truly optional.
    */
@@ -59,14 +66,14 @@ class VotingapiTestCase extends DrupalWe
       return;
     }
   }
-  
+
   /**
    * Add a vote and ensure that the vote was stored properly.
    */
   function testAddVote() {
     global $user;
     $value = '7';
-    $nid = variable_get('votingapi_nid1', null);
+    $nid = variable_get('votingapi_nid1', NULL);
     $vote = array('content_id' => $nid,
       'value' => $value,
       'content_type' => 'node');
@@ -84,7 +91,7 @@ class VotingapiTestCase extends DrupalWe
     $vote_results = votingapi_recalculate_results('node', $nid);
     $this->validateVoteCounts('testAddVote()', $vote_results, $nid, array($value));
   }
-  
+
   /**
    * Add multiple votes and ensure that the vote calculations are working.
    */
@@ -93,7 +100,7 @@ class VotingapiTestCase extends DrupalWe
     $users[] = $this->drupalCreateUser();
     $users[] = $this->drupalCreateUser();
     $users[] = $this->drupalCreateUser();
-    $nid = variable_get('votingapi_nid1', null);
+    $nid = variable_get('votingapi_nid1', NULL);
     $values = array(72, 13, 27);
     $votes = array();
     try {
@@ -110,7 +117,7 @@ class VotingapiTestCase extends DrupalWe
     }
     catch (Exception $e) {
       $this->fail('The votingapi_add_votes threw an error during the "votingapi_add_votes" call.');
-       return;
+      return;
     }
     // Load the vote back in and verify it matches.
     $vote_results = votingapi_recalculate_results('node', $nid);
@@ -136,7 +143,7 @@ class VotingapiTestCase extends DrupalWe
       }
     }
   }
-  
+
   function validateVoteCounts($prefix, $votes, $content_id, $values, $content_type = 'node',
     $value_type = 'percent', $tag = 'vote') {
       $count_summary = 0;
@@ -165,7 +172,7 @@ class VotingapiTestCase extends DrupalWe
         else {
           $prefix_array['@summary'] = $summary['function'];
           $prefix_array['@summary_desc'] = $summary['function'] . ' summary';
-          $this->assertFalse(true, t('@prefix: Unknown summary type @summary.', $prefix_array));
+          $this->assertFalse(TRUE, t('@prefix: Unknown summary type @summary.', $prefix_array));
         }
         $this->assertTrue($summary['content_type'] == $content_type,
           t('@prefix: (@summary_desc) content_type should match, default = "node"', $prefix_array));
Index: views/votingapi.views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/votingapi/views/Attic/votingapi.views.inc,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 votingapi.views.inc
--- views/votingapi.views.inc	19 Sep 2008 18:07:01 -0000	1.1.2.2
+++ views/votingapi.views.inc	30 Sep 2008 11:13:23 -0000
@@ -1,21 +1,20 @@
 <?php
-
-/* $Id: votingapi.views.inc,v 1.1.2.2 2008/09/19 18:07:01 eaton Exp $ */
+// $Id: votingapi.views.inc,v 1.1.2.2 2008/09/19 18:07:01 eaton Exp $
 
 /**
  * @file
- * Provide views data for votingapi.module
+ * Provide views data for votingapi.module.
  */
 
 /**
- * @defgroup views_votingapi_module votingapi.module handlers
+ * @defgroup views_votingapi_module votingapi.module handlers.
  *
  * @{
  */
 
 
 /**
- * Implementation of hook_views_handlers()
+ * Implementation of hook_views_handlers().
  */
 function votingapi_views_handlers() {
   return array(
@@ -34,7 +33,7 @@ function votingapi_views_handlers() {
 
 
 /**
- * Implementation of hook_views_data()
+ * Implementation of hook_views_data().
  */
 function votingapi_views_data() {
   // Basic table information.
@@ -55,7 +54,7 @@ function votingapi_views_data() {
     'field' => array(
       'handler' => 'votingapi_views_handler_field_value',
       'click sortable' => TRUE,
-     ),
+    ),
     'filter' => array(
       'handler' => 'views_handler_filter_numeric',
       'allow empty' => TRUE,
@@ -74,11 +73,11 @@ function votingapi_views_data() {
     'field' => array(
       'handler' => 'views_handler_field',
       'click sortable' => TRUE,
-     ),
-     'filter' => array(
-       'handler' => 'views_handler_filter_string',
-       'label' => t('Value type'),
-       ),
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_string',
+      'label' => t('Value type'),
+    ),
     'sort' => array(
       'handler' => 'views_handler_sort',
     ),
@@ -139,11 +138,11 @@ function votingapi_views_data() {
     'field' => array(
       'handler' => 'views_handler_field',
       'click sortable' => TRUE,
-     ),
-     'filter' => array(
-       'handler' => 'views_handler_filter_string',
-       'label' => t('Value type'),
-       ),
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_string',
+      'label' => t('Value type'),
+    ),
     'sort' => array(
       'handler' => 'views_handler_sort',
     ),
@@ -158,11 +157,11 @@ function votingapi_views_data() {
     'field' => array(
       'handler' => 'views_handler_field_date',
       'click sortable' => TRUE,
-     ),
-     'filter' => array(
-       'handler' => 'views_handler_filter_date',
-       'label' => t('Value type'),
-       ),
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_date',
+      'label' => t('Value type'),
+    ),
     'sort' => array(
       'handler' => 'views_handler_sort',
     ),
@@ -179,11 +178,11 @@ function votingapi_views_data() {
     'field' => array(
       'handler' => 'votingapi_views_handler_field_value',
       'click sortable' => TRUE,
-     ),
-     'filter' => array(
-       'handler' => 'views_handler_filter_numeric',
-       'label' => t('Value'),
-       ),
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_numeric',
+      'label' => t('Value'),
+    ),
     'sort' => array(
       'handler' => 'views_handler_sort',
     ),
@@ -197,11 +196,11 @@ function votingapi_views_data() {
     'field' => array(
       'handler' => 'views_handler_field',
       'click sortable' => TRUE,
-     ),
-     'filter' => array(
-       'handler' => 'views_handler_filter_string',
-       'label' => t('Value type'),
-       ),
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_string',
+      'label' => t('Value type'),
+    ),
     'sort' => array(
       'handler' => 'views_handler_sort',
     ),
@@ -215,11 +214,11 @@ function votingapi_views_data() {
     'field' => array(
       'handler' => 'views_handler_field',
       'click sortable' => TRUE,
-     ),
-     'filter' => array(
-       'handler' => 'views_handler_filter_string',
-       'label' => t('Value type'),
-       ),
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_string',
+      'label' => t('Value type'),
+    ),
     'sort' => array(
       'handler' => 'views_handler_sort',
     ),
@@ -234,11 +233,11 @@ function votingapi_views_data() {
     'field' => array(
       'handler' => 'views_handler_field',
       'click sortable' => TRUE,
-     ),
-     'filter' => array(
-       'handler' => 'views_handler_filter_string',
-       'label' => t('Value type'),
-       ),
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_string',
+      'label' => t('Value type'),
+    ),
     'sort' => array(
       'handler' => 'views_handler_sort',
     ),
@@ -253,11 +252,11 @@ function votingapi_views_data() {
     'field' => array(
       'handler' => 'views_handler_field_date',
       'click sortable' => TRUE,
-     ),
-     'filter' => array(
-       'handler' => 'views_handler_filter_date',
-       'label' => t('Value type'),
-       ),
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_date',
+      'label' => t('Value type'),
+    ),
     'sort' => array(
       'handler' => 'views_handler_sort',
     ),
@@ -324,7 +323,7 @@ function votingapi_views_data_alter(&$vi
   $default_relationships = module_invoke_all('votingapi_views_content_types');
   $default_relationships += array('node' => array('content_table' => 'node', 'content_id_column' => 'nid'));
 
-  foreach($default_relationships as $content_type => $data) {
+  foreach ($default_relationships as $content_type => $data) {
     $views_data[$data['content_table']]['votingapi_vote']['relationship'] = array(
       'title' => 'Individual votes',
       'help' => "Votes cast by users on $content_type content.",
Index: views/votingapi.views_default.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/votingapi/views/Attic/votingapi.views_default.inc,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 votingapi.views_default.inc
--- views/votingapi.views_default.inc	19 Sep 2008 18:19:57 -0000	1.1.2.2
+++ views/votingapi.views_default.inc	30 Sep 2008 11:13:23 -0000
@@ -1,6 +1,11 @@
 <?php
 // $Id: votingapi.views_default.inc,v 1.1.2.2 2008/09/19 18:19:57 eaton Exp $
 
+/**
+ * @file
+ * Provide default views data for votingapi.module.
+ */
+
 function votingapi_views_default_views() {
   $views = array();
 
Index: views/votingapi_views_handler_field_value.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/votingapi/views/Attic/votingapi_views_handler_field_value.inc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 votingapi_views_handler_field_value.inc
--- views/votingapi_views_handler_field_value.inc	18 Sep 2008 06:50:45 -0000	1.1.2.1
+++ views/votingapi_views_handler_field_value.inc	30 Sep 2008 11:13:23 -0000
@@ -1,9 +1,9 @@
 <?php
-/* $Id: votingapi_views_handler_field_value.inc,v 1.1.2.1 2008/09/18 06:50:45 eaton Exp $ */
+// $Id: votingapi_views_handler_field_value.inc,v 1.1.2.1 2008/09/18 06:50:45 eaton Exp $
 
 /**
  * @file
- * Provide a views handlers for votingapi data fields
+ * Provide a views handlers for votingapi data fields.
  */
 
 class votingapi_views_handler_field_value extends views_handler_field_numeric {
Index: views/votingapi_views_handler_relationship.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/votingapi/views/Attic/votingapi_views_handler_relationship.inc,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 votingapi_views_handler_relationship.inc
--- views/votingapi_views_handler_relationship.inc	19 Sep 2008 18:07:01 -0000	1.1.2.2
+++ views/votingapi_views_handler_relationship.inc	30 Sep 2008 11:13:23 -0000
@@ -1,9 +1,9 @@
 <?php
-/* $Id: votingapi_views_handler_relationship.inc,v 1.1.2.2 2008/09/19 18:07:01 eaton Exp $ */
+// $Id: votingapi_views_handler_relationship.inc,v 1.1.2.2 2008/09/19 18:07:01 eaton Exp $
 
 /**
  * @file
- * Provide views handler for votingapi joins
+ * Provide views handler for votingapi joins.
  */
 
 /**
