diff --git a/alinks.module b/alinks.module
index 7b0450c..b81e77c 100644
--- a/alinks.module
+++ b/alinks.module
@@ -115,27 +115,28 @@ function alinks_page () {
   $output .= drupal_get_form('alinks_edit_form');
   return $output;
 }
+
 /**
-* Implementation of hook_node_view().
-*/
-function alinks_node_view(&$node, $view_mode) {
+ * Implementation of hook_node_view().
+ */
+function alinks_node_view($node, $view_mode) {
   if ($view_mode != 'rss') {
-  	drupal_add_js('jQuery(document).ready(function (){
-  		jQuery("a.external").click(function(){
-  			jQuery(this).attr("target","_blank");
-    });
-    });', 'inline');
-  	$alinkNodeType = $node->type;
-	$allNodeTypes = variable_get('alinks_node_types', array());
-	if( in_array($alinkNodeType,$allNodeTypes) ){
-		drupal_add_css(drupal_get_path('module', 'alinks').'/alinks.css');
-        $words = alinks_get_strings();
-        if( is_array($words) && !empty($words) ){
-        	$node->content['body'][0]['#markup'] = alinks_make_links($node->content['body'][0]['#markup'], $words);       	
-        }
-        
-	}
-  	
+    drupal_add_js('
+      jQuery(document).ready(function () {
+        jQuery("a.external").click(function() {
+          jQuery(this).attr("target", "_blank");
+        });
+      });
+    ', 'inline');
+    $alink_node_type = $node->type;
+    $all_node_types = variable_get('alinks_node_types', array());
+    if (in_array($alink_node_type, $all_node_types)) {
+      drupal_add_css(drupal_get_path('module', 'alinks') . '/alinks.css');
+      $words = alinks_get_strings();
+      if (is_array($words) && !empty($words)){
+        $node->content['body'][0]['#markup'] = alinks_make_links($node->content['body'][0]['#markup'], $words);       	
+      }
+    }
   }
 }
 
@@ -143,14 +144,14 @@ function alinks_node_view(&$node, $view_mode) {
  * Get the strings we have to replace from the database
  */
 function alinks_get_strings() {
-	$alinks_array = db_query("SELECT * FROM {alinks} ORDER BY alink_weight")->fetchAll();
-	if( count($alinks_array)>0 ){
-		$alink = array();
-		foreach($alinks_array as $v){
-			$alink[$v->id] = $v;
-		}
-	}
-  	return $alink;
+  $alink = array();
+  $alinks_array = db_query("SELECT * FROM {alinks} ORDER BY alink_weight")->fetchAll();
+  if (count($alinks_array) > 0) {
+    foreach ($alinks_array as $v) {
+      $alink[$v->id] = $v;
+    }
+  }
+  return $alink;
 }
 
 /**
