Index: fivestar.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fivestar/fivestar.install,v
retrieving revision 1.5.2.8
diff -u -p -r1.5.2.8 fivestar.install
--- fivestar.install	23 Jul 2008 15:44:19 -0000	1.5.2.8
+++ fivestar.install	30 Sep 2008 10:22:09 -0000
@@ -1,6 +1,11 @@
 <?php
 // $Id: fivestar.install,v 1.5.2.8 2008/07/23 15:44:19 quicksketch Exp $
 
+/**
+ * @file
+ * Installation file for fivestar module.
+ */
+
 function fivestar_schema() {
   return array();
 }
@@ -21,8 +26,8 @@ function fivestar_uninstall() {
 }
 
 /**
-* Implementation of hook_enable().
-*/
+ * Implementation of hook_enable().
+ */
 function fivestar_enable() {
   if (module_exists('content')) {
     content_notify('enable', 'fivestar');
@@ -30,8 +35,8 @@ function fivestar_enable() {
 }
 
 /**
-* Implementation of hook_disable().
-*/
+ * Implementation of hook_disable().
+ */
 function fivestar_disable() {
   if (module_exists('content')) {
     content_notify('disable', 'fivestar');
@@ -96,7 +101,7 @@ function fivestar_update_2() {
 
 /**
  * Upgrade to Drupal 6 and VotingAPI 2.
- * 
+ *
  * Remove anonymous vote interval from Fivestar, now handled by VotingAPI.
  */
 function fivestar_update_6100() {
Index: fivestar.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fivestar/fivestar.module,v
retrieving revision 1.13.2.42
diff -u -p -r1.13.2.42 fivestar.module
--- fivestar.module	26 Sep 2008 08:13:00 -0000	1.13.2.42
+++ fivestar.module	30 Sep 2008 10:22:10 -0000
@@ -23,6 +23,7 @@ function fivestar_help($path, $arg) {
 
 /**
  * Implementation of hook_menu().
+ *
  * Provides a callback url where votes can be submitted by the client-side
  * javascript.
  */
@@ -62,7 +63,7 @@ function fivestar_menu() {
 
 /**
  * Implementation of hook_init().
- * 
+ *
  * These includes do not need to be loaded for cached pages.
  */
 function fivestar_init() {
@@ -72,7 +73,8 @@ function fivestar_init() {
 }
 
 /**
- * Implementation of hook_perm (permissions).
+ * Implementation of hook_perm().
+ *
  * Exposes permissions for rating content, viewing aggregate ratings, and using PHP
  * snippets when configuring fivestar CCK fields.
  */
@@ -137,9 +139,9 @@ function fivestar_theme() {
 }
 
 /**
- * Implementation of hook_form_alter
+ * Implementation of hook_form_alter().
+ *
  * Adds fivestar enaable and position to the node-type configuration form.
- * 
  */
 function fivestar_form_alter(&$form, &$form_state, $form_id) {
   if ($form_id == 'node_type_form' && isset($form['identity']['type'])) {
@@ -182,7 +184,7 @@ function fivestar_form_alter(&$form, &$f
       '#collapsed' => TRUE,
       '#description' => t('These star labels appear as the link title when javascript is enabled as well as the select list options when javascript is disabled.'),
     );
-    
+
     $form['fivestar']['labels']['fivestar_labels_enable'] = array(
       '#type' => 'checkbox',
       '#title' => t('Display labels on mouse over'),
@@ -191,7 +193,7 @@ function fivestar_form_alter(&$form, &$f
       '#weight' => -5,
       '#description' => t('When enabled, the star labels will dynamically appear underneath the stars as the user hovers over each star to provide a more descriptive qualitative meaning for each star value.'),
     );
-    
+
     // Create the Mouseover text forms for each of the rating options
     // This form depends on the number of stars, and these extra textfields will be hidden with javascript
     $star_count = variable_get('fivestar_stars_'. $form['#node_type']->type, 5);
@@ -281,11 +283,11 @@ function fivestar_form_alter(&$form, &$f
         'above_static' => t('Static display above teaser'),
         'below_static' => t('Static display below teaser'),
         'link' => t('Teaser link to full node widget'),
-        'hidden' => t('<Hidden>'),
+        'hidden' => t('<hidden>'),
       ),
     );
 
-   $form['fivestar']['direct']['fivestar_position'] = array(
+    $form['fivestar']['direct']['fivestar_position'] = array(
       '#type' => 'select',
       '#title' => t('Full node display'),
       '#default_value' => variable_get('fivestar_position_'. $form['#node_type']->type, 'below'),
@@ -294,7 +296,7 @@ function fivestar_form_alter(&$form, &$f
         'below' => t('Clickable widget below node body'),
         'above_static' => t('Static display above node body'),
         'below_static' => t('Static display below node body'),
-        'hidden' => t('<Hidden>'),
+        'hidden' => t('<hidden>'),
       ),
     );
 
@@ -436,7 +438,7 @@ function fivestar_settings() {
     '#title' => t('Widget display'),
     '#description' => t('Choose a widget set to be used on your site. Widgets supporting custom colors can be further customized by adjusting the color scheme.'),
     '#weight' => -2,
-   );
+  );
 
   $widgets = module_invoke_all('fivestar_widgets');
   $classic_widgets = array();
@@ -568,7 +570,7 @@ function theme_fivestar_preview_widget($
 
 /**
  * Callback function for fivestar/preview/color.
- * 
+ *
  * Outputs a dynamically generated star or cancel png.
  */
 function fivestar_preview_color() {
@@ -664,7 +666,7 @@ function theme_fivestar_preview_wrapper(
 
 /**
  * Callback function for fivestar/vote.
- * 
+ *
  * @param type
  *   A content-type to log the vote to. 'node' is the most common.
  * @param cid
@@ -805,10 +807,10 @@ function fivestar_get_votes($type, $cid,
 
 /**
  * Internal function to check that node-type accepts votes
- * 
+ *
  * @param text $type type of target (currently only node is supported)
  * @param text $id identifier within the type (in this case node-type)
- * 
+ *
  * @return boolean
  */
 function _fivestar_validate_target($type, $id) {
@@ -832,11 +834,11 @@ function _fivestar_validate_target($type
 
 
 /**
- * Implementation of hook_fivestar_widgets.
- * 
+ * Implementation of hook_fivestar_widgets().
+ *
  * This hook allows other modules to create additional custom widgets for
  * the fivestar module.
- * 
+ *
  * @return array
  *   An array of key => value pairs suitable for inclusion as the #options in a
  *   select or radios form element. Each key must be the location of a css
@@ -856,8 +858,8 @@ function fivestar_fivestar_widgets() {
 }
 
 /**
- * Implementation of hook_nodeapi()
- * 
+ * Implementation of hook_nodeapi().
+ *
  * Adds the fievestar widget to the node view.
  */
 function fivestar_nodeapi(&$node, $op, $teaser, $page) {
@@ -900,7 +902,7 @@ function fivestar_nodeapi(&$node, $op, $
 
 
 /**
- * Implementation of hook_link()
+ * Implementation of hook_link().
  *
  * Add a "rate" link to node teaser.
  */
@@ -947,9 +949,10 @@ function fivestar_widget_form($node) {
 }
 
 /**
- * Implementation of hook_forms. This is necessary when multiple fivestar
- * forms appear on the same page, each requiring a separate form_id, but all
- * using the same underlying callbacks.
+ * Implementation of hook_forms().
+ *
+ * This is necessary when multiple fivestar forms appear on the same page, each
+ * requiring a separate form_id, but all using the same underlying callbacks.
  */
 function fivestar_forms($form_id, $args) {
   if (strpos($form_id, 'fivestar_form') !== FALSE) {
@@ -1001,7 +1004,7 @@ function fivestar_form(&$form_state, $co
     'labels' => variable_get('fivestar_labels_'. $node->type, array()),
   );
 
-  return fivestar_custom_widget($form_state, $values, $settings);  
+  return fivestar_custom_widget($form_state, $values, $settings);
 }
 
 function fivestar_static($content_type, $content_id, $tag = 'vote', $node_type = NULL) {
@@ -1086,7 +1089,7 @@ function fivestar_custom_widget(&$form_s
     '#redirect' => FALSE,
     '#theme' => 'fivestar_widget',
   );
-  $form['#submit'][] = 'fivestar_form_submit'; 
+  $form['#submit'][] = 'fivestar_form_submit';
 
   if (isset($settings['content_type'])) {
     $form['content_type'] = array(
@@ -1231,8 +1234,8 @@ function fivestar_form_submit($form, &$f
 }
 
 /**
- * Implementation of hook_elements
- * 
+ * Implementation of hook_elements().
+ *
  * Defines 'fivestar' form element type
  */
 function fivestar_elements() {
@@ -1310,7 +1313,7 @@ function theme_fivestar_widget($form) {
 /**
  * Display a plain HTML VIEW ONLY version of the widget
  * with the specified rating
- * 
+ *
  * @param $rating
  *   The desired rating to display out of 100 (i.e. 80 is 4 out of 5 stars)
  * @param $stars
@@ -1319,7 +1322,7 @@ function theme_fivestar_widget($form) {
  *   Allows multiple ratings per node
  * @return
  *   A themed HTML string representing the star widget
- * 
+ *
  */
 function theme_fivestar_static($rating, $stars = 5, $tag = 'vote') {
   // Add necessary CSS.
@@ -1624,7 +1627,7 @@ function fivestar_views_widget_handler($
       'average' => (int)$value,
       'count' => empty($votes['count']['value']) ? 0 : $votes['count']['value'],
     );
-  
+
     $settings = array(
       'stars' => variable_get('fivestar_stars_'. $node_type, 5),
       'allow_clear' => variable_get('fivestar_unvote_'. $node_type, FALSE),
@@ -1641,7 +1644,7 @@ function fivestar_views_widget_handler($
       'labels_enable' => $summary ? variable_get('fivestar_labels_enable_'. $node_type, 1) : FALSE,
       'labels' => $summary ? variable_get('fivestar_labels_'. $node_type, array()) : array(),
     );
-  
+
     return drupal_get_form('fivestar_custom_widget', $values, $settings);
   }
   else {
Index: fivestar_color.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fivestar/Attic/fivestar_color.inc,v
retrieving revision 1.1.4.5
diff -u -p -r1.1.4.5 fivestar_color.inc
--- fivestar_color.inc	29 Mar 2008 00:45:36 -0000	1.1.4.5
+++ fivestar_color.inc	30 Sep 2008 10:22:10 -0000
@@ -2,6 +2,11 @@
 // $Id: fivestar_color.inc,v 1.1.4.5 2008/03/29 00:45:36 quicksketch Exp $
 
 /**
+ * @file
+ * File containing functions relating to the color widget.
+ */
+
+/**
  * Form callback. Returns the configuration form.
  */
 function fivestar_color_form() {
@@ -65,7 +70,7 @@ function fivestar_color_form() {
     'matte' => t('Matte color'),
   );
 
-  $form['fivestar_colors']['#tree'] = true;
+  $form['fivestar_colors']['#tree'] = TRUE;
   $form['fivestar_colors']['#theme'] = 'fivestar_color_palette';
   foreach ($names as $key => $name) {
     $form['fivestar_colors'][$key] = array(
@@ -202,6 +207,7 @@ function fivstar_color_form_submit($form
 
 /**
  * Render images that match a given palette.
+ *
  * @param $source
  *   The original image source (star-template.png or cancel-template.png).
  * @param $palette
@@ -213,7 +219,7 @@ function _fivestar_color_render($source,
 
   // Pull in the template image.
   $template = imagecreatefrompng($source);
-  imagealphablending($template, true);
+  imagealphablending($template, TRUE);
   $width = imagesx($template) / 2;
   $height = imagesy($template);
 
@@ -246,14 +252,14 @@ function _fivestar_color_render($source,
   }
 
   // Apply the overlay on top of the mask.
-  imagealphablending($mask, true);
+  imagealphablending($mask, TRUE);
   imagecopy($mask, $overlay, 0, 0, 0, 0, $width, $height);
   imagedestroy($overlay);
 
   // Set the background color.
   if ($palette['matte'] == 'transparent') {
     // A simple case, just make this save as a 24-bit PNG.
-    imagesavealpha($mask, true);
+    imagesavealpha($mask, TRUE);
     $return = $mask;
   }
   else {
@@ -263,7 +269,7 @@ function _fivestar_color_render($source,
     $matte_rgb = _fivestar_color_unpack($palette['matte']);
     $transparent = imagecolorallocate($return, $matte_rgb[0], $matte_rgb[1], $matte_rgb[2]);
     imagefill($return, 0, 0, $transparent);
-    imagealphablending($return, true);
+    imagealphablending($return, TRUE);
     imagecopy($return, $mask, 0, 0, 0, 0, $width, $height);
     imagecolortransparent($return, $transparent);
     imagetruecolortopalette($return, TRUE, 255);
@@ -274,7 +280,7 @@ function _fivestar_color_render($source,
 
 /**
  * Apply a color to a portion of a black and white mask image.
- * 
+ *
  * @param $mask
  *   A GD image reference containing the mask image.
  * @param $color
@@ -290,16 +296,16 @@ function _fivestar_color_mask(&$mask, $c
       if ($matte_color != 'transparent' && $current_pixel['alpha'] != 127) {
         $matte_rgb = _fivestar_color_unpack($matte_color);
         $matte = imagecolorallocate($mask, $matte_rgb[0], $matte_rgb[1], $matte_rgb[2]);
-        imagealphablending($mask, false);
+        imagealphablending($mask, FALSE);
         imagesetpixel($mask, $x, $y, $matte);
-        imagealphablending($mask, true);
+        imagealphablending($mask, TRUE);
         imagesetpixel($mask, $x, $y, $new_color);
       }
       // Transparent matte:
       else {
-        imagealphablending($mask, false);
+        imagealphablending($mask, FALSE);
         imagesetpixel($mask, $x, $y, $new_color);
-        imagealphablending($mask, true);
+        imagealphablending($mask, TRUE);
       }
     }
   }
@@ -307,9 +313,9 @@ function _fivestar_color_mask(&$mask, $c
 
 /**
  * Apply a gradient to a portion of a black and white mask image.
- * 
+ *
  * The two colors passed in will form a linear gradient from top to bottom.
- * 
+ *
  * @param $mask
  *   A GD image reference containing the mask image.
  * @param $color1
@@ -339,7 +345,7 @@ function _fivestar_color_blend($hex1, $h
 /**
  * Convert a hex color into an RGB triplet.
  */
-function _fivestar_color_unpack($hex, $normalize = false) {
+function _fivestar_color_unpack($hex, $normalize = FALSE) {
   if (strlen($hex) == 4) {
     $hex = $hex[1] . $hex[1] . $hex[2] . $hex[2] . $hex[3] . $hex[3];
   }
@@ -353,7 +359,7 @@ function _fivestar_color_unpack($hex, $n
 /**
  * Convert an RGB triplet to a hex color.
  */
-function _fivestar_color_pack($rgb, $normalize = false) {
+function _fivestar_color_pack($rgb, $normalize = FALSE) {
   foreach ($rgb as $k => $v) {
     $out |= (($v * ($normalize ? 255 : 1)) << (16 - $k * 8));
   }
Index: fivestar_comment.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fivestar/Attic/fivestar_comment.install,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 fivestar_comment.install
--- fivestar_comment.install	30 Jun 2008 03:40:15 -0000	1.1.2.1
+++ fivestar_comment.install	30 Sep 2008 10:22:10 -0000
@@ -1,6 +1,11 @@
 <?php
 // $Id: fivestar_comment.install,v 1.1.2.1 2008/06/30 03:40:15 quicksketch Exp $
 
+/**
+ * @file
+ * Installation file for Fivestar Comment module.
+ */
+
 function fivestar_comment_schema() {
   $schema['fivestar_comment'] = array(
     'fields' => array(
Index: fivestar_comment.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fivestar/Attic/fivestar_comment.module,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 fivestar_comment.module
--- fivestar_comment.module	6 Sep 2008 00:21:10 -0000	1.1.2.2
+++ fivestar_comment.module	30 Sep 2008 10:22:10 -0000
@@ -99,7 +99,7 @@ function fivestar_comment(&$comment, $op
       if ($fivestar_status != FIVESTAR_COMMENT_DISABLED) {
         if (!isset($comment->fivestar_rating)) {
           $current_rating = fivestar_comment_load($comment->cid, $comment->nid);
-          $comment->fivestar_rating = isset($current_rating['value']) ? $current_rating['value'] : NULL; 
+          $comment->fivestar_rating = isset($current_rating['value']) ? $current_rating['value'] : NULL;
         }
         $comment->fivestar_rating = $comment->fivestar_rating;
         $comment->fivestar_view = theme('fivestar_static', $comment->fivestar_rating, variable_get('fivestar_stars_'. $node->type, 5));
Index: fivestar_field.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fivestar/fivestar_field.inc,v
retrieving revision 1.3.2.10
diff -u -p -r1.3.2.10 fivestar_field.inc
--- fivestar_field.inc	23 Jul 2008 15:54:22 -0000	1.3.2.10
+++ fivestar_field.inc	30 Sep 2008 10:22:10 -0000
@@ -101,7 +101,7 @@ function fivestar_field_settings($op, $f
       );
   }
 }
-  
+
 /**
  * Implementation of hook_field().
  */
@@ -231,7 +231,7 @@ function fivestar_widget(&$form, &$form_
 
   return $element;
 }
-      
+
 /**
  * Implementation of hook_field_formatter_info().
  */
