Index: comment.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/comment.inc,v
retrieving revision 1.129.2.2
diff -u -p -r1.129.2.2 comment.inc
--- comment.inc	14 Apr 2008 00:26:24 -0000	1.129.2.2
+++ comment.inc	22 Oct 2008 14:20:11 -0000
@@ -263,7 +263,7 @@ function theme_project_issue_comment_tab
 
   if (is_array($change['old']) || is_array($change['new'])) {
     $removed = array();
-    if (is_array($change['old'])){
+    if (is_array($change['old'])) {
       foreach ($change['old'] as $item) {
         $removed[] = '-'. $item;
       }
@@ -343,7 +343,7 @@ function project_issue_update_by_comment
       $comment_data['component'] = $comment_data['project_info']['component'];
       $comment_data['pid'] = $comment_data['project_info']['pid'];
       $comment_data['rid'] = $comment_data['project_info']['rid'];
-      unset ($comment_data['project_info']);
+      unset($comment_data['project_info']);
       $comment_data = (object) $comment_data;
       // Mark the node for email notification during hook_exit(), so all issue
       // and file data is in a consistent state before we generate the email.
Index: issue.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/issue.inc,v
retrieving revision 1.304.2.10
diff -u -p -r1.304.2.10 issue.inc
--- issue.inc	15 Aug 2008 23:26:03 -0000	1.304.2.10
+++ issue.inc	22 Oct 2008 14:20:11 -0000
@@ -9,7 +9,7 @@ function project_issue_page() {
     case 'rss':
       $project = project_project_retrieve(arg(3));
       if ($project->nid && node_access('view', $project)) {
-        $query = new StdClass();
+        $query = new stdClass();
         $query->projects = array($project->nid);
 
         project_issue_query_result($query, 'rss');
@@ -64,7 +64,7 @@ function project_issue_page() {
     default:
       $project = project_issue_build_form_url(arg(2));
       if ($project->nid && node_access('view', $project)) {
-        $query = new StdClass();
+        $query = new stdClass();
         $query->projects = array($project->nid);
 
         return project_issue_query_result($query);
@@ -712,7 +712,7 @@ function project_issue_form($node, $incl
     }
     $categories = array_merge(array(t('<none>')), project_issue_category(0, 0));
     $priorities = project_issue_priority();
-    $states = project_issue_state(0, true, $node->nid && ($node->uid == $user->uid), $node->sid);
+    $states = project_issue_state(0, TRUE, $node->nid && ($node->uid == $user->uid), $node->sid);
 
     // Setup the array of choices for who the issue is assigned to.
     $assigned = array();
@@ -859,7 +859,7 @@ function project_issue_form($node, $incl
 }
 
 /**
- * Implmentation of hook_validate().
+ * Implementation of hook_validate().
  *
  * Ensures that the issue node form has valid values for all required fields.
  * We use hook_validate() here instead of a #validate handler or even defining
@@ -896,7 +896,7 @@ function project_issue_validate(&$node) 
   }
 }
 
-function project_issue_view($node, $teaser = false, $page = false) {
+function project_issue_view($node, $teaser = FALSE, $page = FALSE) {
   $node = node_prepare($node, $teaser);
 
   if (!$teaser && ($page || project_issue_is_comment_reply())) {
@@ -1194,7 +1194,7 @@ function project_issue_access($op, $node
  *   An array of states (sid as key, name as value) that match the
  *   given filters, or the name of the requested state.
  */
-function project_issue_state($sid = 0, $restrict = false, $is_author = false, $current_sid = 0, $defaults = false, $account = NULL) {
+function project_issue_state($sid = 0, $restrict = FALSE, $is_author = FALSE, $current_sid = 0, $defaults = FALSE, $account = NULL) {
   static $options;
 
   if (!$options) {
@@ -1204,7 +1204,7 @@ function project_issue_state($sid = 0, $
     }
   }
 
-  foreach($options as $state) {
+  foreach ($options as $state) {
     if ($restrict) {
       // Check if user has access,
       // or if status is default status and therefore available to all,
@@ -1238,7 +1238,7 @@ function project_issue_state($sid = 0, $
 function project_issue_default_states() {
   static $defaults;
   if (empty($defaults)) {
-    $states = project_issue_state(0, false, false, 0, true);
+    $states = project_issue_state(0, FALSE, FALSE, 0, TRUE);
     $defaults = !empty($states) ? array_keys($states) : array(1, 2, 4);
   }
   return $defaults;
@@ -1579,7 +1579,7 @@ function project_issue_admin_states_form
     variable_set('project_issue_default_state', $form_values['default_state']);
   }
   // Update existing status options.
-  if($form_values['status']) {
+  if ($form_values['status']) {
     foreach ($form_values['status'] as $sid => $value) {
       $state = db_fetch_object(db_query('SELECT name, weight, author_has, default_query FROM {project_issue_state} WHERE sid = %d', $sid));
       // Check to see whether the record needs updating.
@@ -1596,7 +1596,7 @@ function project_issue_admin_states_form
       db_query("INSERT INTO {project_issue_state} (name, weight, author_has, default_query) VALUES ('%s', %d, %d, %d)", $form_values['status_add']['name'], $form_values['status_add']['weight'], $form_values['status_add']['author_has'], $form_values['status_add']['default_query']);
     }
     else {
-      drupal_set_message(t('Status %status already exists.', array ('%status' => $form_values['status_add']['name'])));
+      drupal_set_message(t('Status %status already exists.', array('%status' => $form_values['status_add']['name'])));
     }
   }
 }
@@ -1634,9 +1634,10 @@ function project_issue_delete_state_conf
 }
 
 function project_issue_delete_state_confirm_submit($form_id, $form_values) {
-  if($form_values['new_sid'] == $form_values['sid']) {
+  if ($form_values['new_sid'] == $form_values['sid']) {
       form_set_error('new_sid', t('Choose a new issue status for existing issues of status %name.', array('%name' => $form_values['name'])));
-  } else {
+  }
+  else {
     if ($form_values['new_sid']) {
       db_query('UPDATE {project_issues} SET sid = %d WHERE sid = %d', $form_values['new_sid'], $form_values['sid']);
     }
@@ -1646,7 +1647,7 @@ function project_issue_delete_state_conf
   }
 }
 
-function project_issue_query_result($query = NULL, $format = 'html', $show_search = true, $set_title = true) {
+function project_issue_query_result($query = NULL, $format = 'html', $show_search = TRUE, $set_title = TRUE) {
   global $user;
   $query = project_issue_query_parse($query);
   // $query must have a real value now, or the rest of this function fails.
@@ -1826,7 +1827,7 @@ function project_issue_query_result($que
     }
   }
   else {
-    $rows[] = array(array('data' => t('No issues found.'), 'colspan'=> 8));
+    $rows[] = array(array('data' => t('No issues found.'), 'colspan' => 8));
   }
 
   $output = '<div class="project-issue">';
@@ -1887,35 +1888,35 @@ function project_issue_query_result_quic
   }
 
   $form['projects'] = array(
-    '#type'=> 'select',
+    '#type' => 'select',
     '#title' => t('Project'),
     '#default_value' => $query->projects,
     '#options' => $projects,
   );
   $form['states'] = array(
-    '#type'=> 'select',
+    '#type' => 'select',
     '#title' => t('Status'),
     '#default_value' => $query->states,
     '#options' => $states,
   );
   $form['categories'] = array(
-    '#type'=> 'select',
+    '#type' => 'select',
     '#title' => t('Category'),
     '#default_value' => $query->categories,
     '#options' => $categories,
   );
   $form['priorities'] = array(
-    '#type'=> 'select',
+    '#type' => 'select',
     '#title' => t('Priority'),
     '#default_value' => $query->priorities,
     '#options' => $priorities,
   );
   $form['users'] = array(
-    '#type'=> 'hidden',
+    '#type' => 'hidden',
     '#value' => $query->users,
   );
   $form['js'] = array(
-    '#type'=> 'hidden',
+    '#type' => 'hidden',
     '#value' => '0',
   );
   $form['submit'] = array(
Index: project_issue.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/project_issue.install,v
retrieving revision 1.48.2.2
diff -u -p -r1.48.2.2 project_issue.install
--- project_issue.install	8 Oct 2008 16:44:32 -0000	1.48.2.2
+++ project_issue.install	22 Oct 2008 14:20:11 -0000
@@ -329,7 +329,7 @@ function project_issue_update_5000() {
   $ret = array();
   switch ($GLOBALS['db_type']) {
     case 'pgsql':
-      $last_sid = db_result(db_query('SELECT MAX(sid) FROM project_issue_state'));
+      $last_sid = db_result(db_query('SELECT MAX(sid) FROM {project_issue_state}'));
       db_query("SELECT setval('project_issue_state_sid_seq', %d)", $last_sid);
       break;
   }
Index: project_issue.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/project_issue.module,v
retrieving revision 1.88.2.8
diff -u -p -r1.88.2.8 project_issue.module
--- project_issue.module	8 Oct 2008 16:44:32 -0000	1.88.2.8
+++ project_issue.module	22 Oct 2008 14:20:12 -0000
@@ -164,7 +164,7 @@ function project_issue_perm() {
     'assign and be assigned project issues',
   );
   $states = project_issue_state();
-  foreach($states as $key => $value) {
+  foreach ($states as $key => $value) {
     $perms[] = "set issue status ". str_replace("'", "", $value);
   }
   return $perms;
@@ -1037,7 +1037,7 @@ function project_issue_user_page($arg = 
   $output = theme('table', $header, $rows, array('class' => 'projects'));
   $output .= l('#', "project/user/$user->name");
 
-  $output .= theme('box', t('Issues'), project_issue_query_result($query, 'html', false, false));
+  $output .= theme('box', t('Issues'), project_issue_query_result($query, 'html', FALSE, FALSE));
 
   return $output;
 }
@@ -1248,7 +1248,7 @@ function project_issue_filter($op, $delt
     case 'process':
       $regex = '(?<!\w)(\[#(\d+)(-(\d+))?\])(?![^<]*<\/a>|([^<]++|(<(?!code)))*<\/code>|([^<]++|(<(?!pre)))*<\/pre>|\w)';
       $offset = 0;
-      while(preg_match("/$regex/", $text, $preg_matches, PREG_OFFSET_CAPTURE, $offset)) {
+      while (preg_match("/$regex/", $text, $preg_matches, PREG_OFFSET_CAPTURE, $offset)) {
         $offset++;
         $match = $preg_matches[1];
         $nid = $preg_matches[2][0];
Index: project_issue.views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/project_issue.views.inc,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 project_issue.views.inc
--- project_issue.views.inc	9 Aug 2008 02:17:26 -0000	1.1.2.5
+++ project_issue.views.inc	22 Oct 2008 14:20:12 -0000
@@ -37,7 +37,7 @@ function _project_issue_views_tables() {
     'fields' => array(
       'changed' => array(
         'name' => t('Project issue: Updated Time'),
-        'sortable' => true,
+        'sortable' => TRUE,
         'handler' => views_handler_field_project_issue_since,
         'option' => 'string',
         'help' => t('Display the last time the issue node was updated.'),
@@ -62,18 +62,18 @@ function _project_issue_views_tables() {
       // the project_issue_project_node definition below.
       'category' => array(
         'name' => t('Project Issue: Category'),
-        'sortable' => true,
+        'sortable' => TRUE,
         'help' => t('The issue\'s category (bug, task, feature, etc).'),
       ),
       'component' => array(
         'name' => t('Project Issue: Component'),
-        'sortable' => true,
+        'sortable' => TRUE,
         'help' => t('The issue\'s component (the options are controlled per-project).'),
       ),
       'priority' => array(
         'name' => t('Project Issue: Priority'),
         'handler' => 'views_handler_field_project_issue_priority',
-        'sortable' => true,
+        'sortable' => TRUE,
         'help' => t('The issue\'s priority (critical, normal, minor).'),
       ),
       'rid' => array(
@@ -87,18 +87,18 @@ function _project_issue_views_tables() {
         ),
         'query_handler' => 'views_query_handler_field_project_issue_version',
         'handler' => 'views_handler_field_project_issue_version',
-        'sortable' => true,
+        'sortable' => TRUE,
         'help' => t('The version associated with the issue (depends on project_release.module). Choose "Always display this field" if you want this field to be displayed in the view even if no project is selected.'),
       ),
       'sid' => array(
         'name' => t('Project Issue: Status'),
         'help' => t('The status of each issue.'),
-        'sortable' => true,
+        'sortable' => TRUE,
         'handler' => 'views_handler_field_project_issue_status',
       ),
       'all_files' => array(
         'name' => t('Project Issue: All files for issue'),
-        'notafield' => true,
+        'notafield' => TRUE,
         'query_handler' => 'views_query_handler_project_issue_all_files',
         'handler' => array(
           'views_handler_project_issue_all_files' => t('All files'),
@@ -111,7 +111,7 @@ function _project_issue_views_tables() {
             'linkdesc' => t('File descriptions with links'),
             'nolinkdesc' => t('File descriptions without links'),
           )),
-        'sortable' => false,
+        'sortable' => FALSE,
         'help' => t('Display all files attached to an issue or comments on an issue in one field.'),
       ),
      ),
@@ -145,7 +145,7 @@ function _project_issue_views_tables() {
         'value' => array(
           '#type' => 'select',
           '#multiple' => TRUE,
-          '#options' => array('defaults' => implode(',', project_issue_state(0, false, false, 0, true))) + project_issue_state(),
+          '#options' => array('defaults' => implode(',', project_issue_state(0, FALSE, FALSE, 0, TRUE))) + project_issue_state(),
         ),
         'value-type' => 'array',
         'handler' => 'views_handler_filter_project_issue_status_filter',
@@ -216,7 +216,7 @@ function _project_issue_views_tables() {
              'nolink' => t('Without link')
             ),
         ),
-        'sortable' => true,
+        'sortable' => TRUE,
         'pid' => 'nid',
         'addlfields' => array('changed', 'nid'),
         'help' => t('Display the title of the project.'),
@@ -253,7 +253,7 @@ function _project_issue_views_tables() {
     'fields' => array(
       'uri' => array(
         'name' => t('Project Issue Project Node: Short name'),
-        'sortable' => true,
+        'sortable' => TRUE,
         'help' => t('Display the short name of the project.  In most cases you will want to include this field in your view but select the "Do not display this field" option.'),
         'option' => array(
            '#type' => 'select',
@@ -283,7 +283,7 @@ function _project_issue_views_tables() {
       'name' => array(
         'name' => t('Project Issue: Assigned'),
         'handler' => 'views_handler_field_project_issue_assigned',
-        'sortable' => true,
+        'sortable' => TRUE,
         'uid' => 'uid',
         'addlfields' => array('uid', 'name'),
         'help' => t('The user a given issue is assigned to.'),
@@ -314,7 +314,7 @@ function views_query_handler_project_iss
 /**
  * Display all files attached to a given node.
  */
-function views_handler_project_issue_all_files($fieldinfo, $fielddata, $value, $data, $listed = false) {
+function views_handler_project_issue_all_files($fieldinfo, $fielddata, $value, $data, $listed = FALSE) {
   $and = $listed ? ' AND list = 1' : '';
   $links = array();
 
@@ -325,12 +325,14 @@ function views_handler_project_issue_all
     // link/nolink use file filename; linkdesc/nolinkdesc use file description
     if ($fielddata['options'] == 'link' || $fielddata['options'] == 'nolink') {
       $display_string = $file->filename;
-    } else {
+    }
+    else {
       $display_string = $file->description;
     }
     if ($fielddata['options'] == 'nolink' || $fielddata['options'] == 'nolinkdesc') {
       $links[] = check_plain($display_string);
-    } else {
+    }
+    else {
       $links[] = l($display_string, check_url(file_create_url($file->filepath)));
     }
   }
@@ -339,12 +341,14 @@ function views_handler_project_issue_all
     // link/nolink use file filename; linkdesc/nolinkdesc use file description
     if ($fielddata['options'] == 'link' || $fielddata['options'] == 'nolink') {
       $display_string = $file->filename;
-    } else {
+    }
+    else {
       $display_string = $file->description;
     }
     if ($fielddata['options'] == 'nolink' || $fielddata['options'] == 'nolinkdesc') {
       $links[] = check_plain($display_string);
-    } else {
+    }
+    else {
       $links[] = l($display_string, check_url(file_create_url($file->filepath)));
     }
   }
@@ -488,7 +492,8 @@ function views_handler_filter_project_is
       foreach (project_issue_default_states() as $default) {
         $include[] = $default;
       }
-    } else {
+    }
+    else {
       $include[] = $val;
     }
   }
@@ -630,7 +635,7 @@ function project_issue_views_pre_view(&$
   // the version field is set to always be displayed.
   if (empty($project->releases) && $view->field[$view_fields['project_issues.rid']]['options'] == 'project_issue_rid_allow_hide') {
     unset($view->field[$view_fields['project_issues.rid']]);
-    unset ($view->table_header[$view_fields['project_issues.rid']]);
+    unset($view->table_header[$view_fields['project_issues.rid']]);
   }
 
   global $user;
Index: generate/project_issue_generate.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/generate/project_issue_generate.inc,v
retrieving revision 1.6.2.1
diff -u -p -r1.6.2.1 project_issue_generate.inc
--- generate/project_issue_generate.inc	12 Oct 2008 20:32:19 -0000	1.6.2.1
+++ generate/project_issue_generate.inc	22 Oct 2008 14:20:12 -0000
@@ -32,7 +32,7 @@ function project_issue_generate_issues($
     $issue['category'] = $categories[array_rand($categories)];
     $issue['component'] = $components[array_rand($components)];
     $issue['priority'] = array_rand($priorities);
-    $issue['title'] = devel_create_greeking(rand(2, 15), true);
+    $issue['title'] = devel_create_greeking(rand(2, 15), TRUE);
     $issue['body'] = devel_create_content();
     $issue['rid'] = array_rand($releases);
 
@@ -102,7 +102,7 @@ function project_issue_generate_issue_co
       $issues[$k]->priority = array_rand($priorities);
     }
     if (rand(0, 1)) {
-      $issues[$k]->title = devel_create_greeking(rand(2, 10), true);
+      $issues[$k]->title = devel_create_greeking(rand(2, 10), TRUE);
     }
     if (rand(0, 1)) {
       $issues[$k]->sid = array_rand(_project_issue_generate_get_permitted_sids($account));
