diff --git a/contentanalysis.admin.inc b/contentanalysis.admin.inc
index e8fe1b4..76f2f8d 100644
--- a/contentanalysis.admin.inc
+++ b/contentanalysis.admin.inc
@@ -1,4 +1,5 @@
 <?php
+
 /**
  * @file * Admin include file. 
 */
@@ -40,7 +41,7 @@
     '#title' => t('Node edit report style'), 
     '#options' => $options,
     '#default_value' => variable_get('contentanalysis_node_report_display', 'both'),     
-    '#description' => t('Select the style of report you would like when launching from the node edit form. Dialog is the standard modal report. Inline inserts recommendations directly into the node edit form.')     
+    '#description' => t('Select the style of report you would like when launching from the node edit form. Dialog is the standard modal report. Inline inserts recommendations directly into the node edit form.')
   );     
   
   $form['contentanalysis_node_parse_options'] = array(      
diff --git a/contentanalysis.module b/contentanalysis.module
index 00f8e1c..bdc7c88 100644
--- a/contentanalysis.module
+++ b/contentanalysis.module
@@ -223,7 +223,7 @@ function contentanalysis_analysis_form($form_state, $analysis = array(), $node =
 
 // hack protecting settings on mutiple calls
   static $js_added;
-  if(!$js_added) {
+  if (!$js_added) {
     drupal_add_js(
       array('contentanalysis' => array(
         'analyze_callback' => variable_get('contentanalysis_host', '') . base_path() . 'contentanalysis/analyze_js',
@@ -507,46 +507,37 @@ function contentanalysis_save_status($analysis) {
     if (substr($anid, 0, 1)=='#' || !is_array($analysisi)) { 
       continue; 
     }
-    if(($analysisi['#status'] != 'status') || ($analysisi['#score'])) {
-	  $statusi = array(
-	    'error' => 0,
-		'warning' => 1,
-		'complete' => 2,
-	  );
-	  $set = '';
-	  if($analysisi['#score']) {
-		$set = ', score = %f';
-	  }
-	  $sql = '
-        UPDATE {contentanalysis_status}
-        SET status = "%s",
-		  statusi = %d ' . $set . '
-        WHERE aid = %d
-          AND analyzer = "%s"
-      ';
-	  if($analysisi['#score']) {
+    if (($analysisi['#status'] != 'status') || ($analysisi['#score'])) {
+      $statusi = array(
+        'error' => 0,
+        'warning' => 1,
+        'complete' => 2,
+      );
+      $set = '';
+      if ($analysisi['#score']) {
+        $set = ', score = %f';
+      }
+      $sql = 'UPDATE {contentanalysis_status} SET status = "%s", statusi = %d ' . $set . '
+      WHERE aid = %d AND analyzer = "%s"';
+      if ($analysisi['#score']) {
         db_query($sql, $analysisi['#status'], $statusi[$analysisi['#status']], $analysisi['#score'], $aid, $anid);
-	  }
-	  else {
-	    db_query($sql, $analysisi['#status'], $statusi[$analysisi['#status']], $aid, $anid);
-	  }
-      if(!db_affected_rows()) {
-	    if($analysisi['#score']) {
-		  $sql = '
-			INSERT INTO {contentanalysis_status}
-			 (aid, analyzer, status, statusi, score)
-			 VALUES (%d, "%s", "%s", %d, %f)
-		  ';
-		  db_query($sql, $aid, $anid, $analysisi['#status'], $statusi[$analysisi['#status']], $analysisi['#score']);    
+      }
+      else {
+        db_query($sql, $analysisi['#status'], $statusi[$analysisi['#status']], $aid, $anid);
+      }
+      if (!db_affected_rows()) {
+        if ($analysisi['#score']) {
+          $sql = 'INSERT INTO {contentanalysis_status}
+                 (aid, analyzer, status, statusi, score)
+	         VALUES (%d, "%s", "%s", %d, %f)';
+          db_query($sql, $aid, $anid, $analysisi['#status'], $statusi[$analysisi['#status']], $analysisi['#score']);
+        }
+        else {
+          $sql = 'INSERT INTO {contentanalysis_status}
+		  (aid, analyzer, status, statusi)
+		  VALUES (%d, "%s", "%s", %d)';
+          db_query($sql, $aid, $anid, $analysisi['#status'], $statusi[$analysisi['#status']]);
         }
-		else {
-		  $sql = '
-			INSERT INTO {contentanalysis_status}
-			 (aid, analyzer, status, statusi)
-			 VALUES (%d, "%s", "%s", %d)
-		  ';
-		  db_query($sql, $aid, $anid, $analysisi['#status'], $statusi[$analysisi['#status']]);  
-		}
       }
     }
   }
@@ -688,9 +679,10 @@ function contentanalysis_parse_context_node_edit($context) {
   if (module_exists('nodewords')) {
     $default_nodewords = nodewords_load_tags();
     if (is_null($context['meta_description'])) {
-      if(function_exists('nodewords_metatag_from_node_content')) { // function used in versions prior to 6.12.9
+      if (function_exists('nodewords_metatag_from_node_content')) { // function used in versions prior to 6.12.9
         $description = nodewords_metatag_from_node_content($context['node'], '');
-      } elseif(function_exists('nodewords_metatag_from_node_content')) { // function new to 6.12.9
+      }
+      elseif (function_exists('nodewords_metatag_from_node_content')) { // function new to 6.12.9
         $description = nodewords_metatag_from_teaser($context['node'], '');
       }
       if ($description) {
diff --git a/includes/seo_friend.inc b/includes/seo_friend.inc
index 0e6ab80..f38b09a 100644
--- a/includes/seo_friend.inc
+++ b/includes/seo_friend.inc
@@ -1,4 +1,5 @@
 <?php
+
 /**
  * @file * Admin include file. 
 */
@@ -29,21 +30,21 @@ function contentanalysis_seo_friend_report() {
 	FROM {contentanalysis_status}
   ';
   $result = db_query($sql);
-  while($a = db_result($result)) {
-	$analyzers[$a] = $analyzers_meta[$a]['title'];
+  while ($a = db_result($result)) {
+    $analyzers[$a] = $analyzers_meta[$a]['title'];
   }
   $header = array(
       array('data' => 'nid', 'field' => 'n.nid'),
       array('data' => 'status', 'field' => 'n.status'),
       array('data' => 'node title', 'field' => 'r.title'),
   );
-  if(!is_array($analyzers)) {
+  if (!is_array($analyzers)) {
     drupal_set_message(t('No statuses have been reported by any content analyzers. To generate reports, click the "Analyze content" button from a node edit form.'), 'warning');
-	$analyzers = array();
+      $analyzers = array();
   }
   else {  
-    foreach($analyzers AS $aid => $analyzer) {
-	  $header[] = array('data' => $analyzer, 'field' => 'as_' . $aid . '.statusi');
+    foreach ($analyzers AS $aid => $analyzer) {
+      $header[] = array('data' => $analyzer, 'field' => 'as_' . $aid . '.statusi');
       $did = 'as_' . $aid;
       $a_join .= "LEFT JOIN {contentanalysis_status} AS $did ON a.aid = $did.aid AND $did.analyzer = \"$aid\"\n";
       $a_select .= ", $did.statusi AS {$aid}_statusi, $did.score AS {$aid}_score";
@@ -56,7 +57,7 @@ function contentanalysis_seo_friend_report() {
   $page_title_join = '';
   if (module_exists('page_title')) {
     $page_title_field = ', p.page_title ';
-    $page_title_join = ' LEFT JOIN {page_title} AS p ON n.nid=p.'.seo_friend_get_page_title_id_column();
+    $page_title_join = ' LEFT JOIN {page_title} AS p ON n.nid=p.' . seo_friend_get_page_title_id_column();
   }
   $sql = '
       SELECT n.nid, n.status, n.type, r.title, n.sticky ' . $page_title_field . $a_select . ' 
@@ -72,7 +73,7 @@ function contentanalysis_seo_friend_report() {
       FROM {node} AS n
 	  LEFT JOIN {contentanalysis} AS a ON n.nid = a.nid
 	  ' . $a_join . '
-      INNER JOIN {node_revisions} AS r ON n.vid=r.vid '.$page_title_join.
+      INNER JOIN {node_revisions} AS r ON n.vid=r.vid ' . $page_title_join . 
       tablesort_sql($header);
     $pager_num = seo_friend_get_number_variable(SEO_PAGER_NUM, 100);
     $result = pager_query($sql, $pager_num, 0, $count_sql);
@@ -81,43 +82,43 @@ function contentanalysis_seo_friend_report() {
   while ($r = db_fetch_object($result)) {
     $data = array();
 
-	$data[] = array('data' => $r->nid, 'class' => 'row-status');
-	$data[] = seo_friend_get_node_status($r);
-	$data[] = l($r->title, 'node/'.$r->nid);
-	foreach($analyzers AS $aid => $analyzer) {
+    $data[] = array('data' => $r->nid, 'class' => 'row-status');
+    $data[] = seo_friend_get_node_status($r);
+    $data[] = l($r->title, 'node/' . $r->nid);
+    foreach ($analyzers AS $aid => $analyzer) {
 //dsm($r);
       $value = NULL;
       $class = NULL;
       $scoreh = $aid . '_score';
-	  $statush = $aid . '_statusi';
-	  if($r->$scoreh) {
-	    $dec = ($analyzers_meta[$aid]['score decimals']) ? $analyzers_meta[$aid]['score decimals'] : 1;
+      $statush = $aid . '_statusi';
+      if ($r->$scoreh) {
+        $dec = ($analyzers_meta[$aid]['score decimals']) ? $analyzers_meta[$aid]['score decimals'] : 1;
         $value = $analyzers_meta[$aid]['score prefix'] . number_format($r->$scoreh, $dec) . $analyzers_meta[$aid]['score suffix'];
       }
-      if(is_null($r->$statush)) {
-	    $value = ($value) ? $value : t('NA');
-		$class = 'status';	
-	  }
-	  else if($r->$statush == 2) {
+      if (is_null($r->$statush)) {
+        $value = ($value) ? $value : t('NA');
+        $class = 'status';
+      }
+      elseif ($r->$statush == 2) {
         $value = ($value) ? $value : t('OK');
-        $class = 'ok';		
+        $class = 'ok';
       }
-      else if($r->$statush == 1) {
+      elseif ($r->$statush == 1) {
         $value = ($value) ? $value : t('warn');
-		$class = 'warning';
+        $class = 'warning';
       }
-      else if($r->$statush == 0) {
+      elseif ($r->$statush == 0) {
         $value = ($value) ? $value : t('error');
-		$class = 'error';
-      }	
-	  $data[] = array(
-	    'data' => $value,
-		'class' => $class,
-	  );
-	}	
-	$data[] = l('Edit', 'node/'.$r->nid.'/edit');
-    $rows[] = array('data' =>
-      $data,
+        $class = 'error';
+      }
+      $data[] = array(
+        'data' => $value,
+        'class' => $class,
+      );
+    }
+    $data[] = l('Edit', 'node/' . $r->nid . '/edit');
+    $rows[] = array(
+      'data' => $data,
       'class' => $duplicates ? 'error' : 'ok'
     );
   }
