diff --git a/nodeblock.install b/nodeblock.install
index 0c7563e..a0bfe04 100644
--- a/nodeblock.install
+++ b/nodeblock.install
@@ -1,6 +1,11 @@
 <?php
 
 /**
+ * @file
+ * Define module install logic.
+ */
+
+/**
  * Implements hook_schema().
  */
 function nodeblock_schema() {
@@ -82,32 +87,32 @@ function nodeblock_update_7100() {
  */
 function nodeblock_update_7101() {
   $variables = variable_initialize();
-  foreach($variables as $name => $value) {
-    if(strpos($name, 'nodeblock') !== false) {
-      if(strpos($name, 'nodeblock_block_') !== false) {
+  foreach ($variables as $name => $value) {
+    if (strpos($name, 'nodeblock') !== FALSE) {
+      if (strpos($name, 'nodeblock_block_') !== FALSE) {
         $blocks[str_replace('nodeblock_block_', '', $name)] = $name;
       }
-      else if(strpos($name, 'nodeblock_comment_link_') === false && strpos($name, 'nodeblock_node_link_') === false && strpos($name, 'nodeblock_view_mode_') === false) {
-        if((bool)$value) {
+      elseif (strpos($name, 'nodeblock_comment_link_') === FALSE && strpos($name, 'nodeblock_node_link_') === FALSE && strpos($name, 'nodeblock_view_mode_') === FALSE) {
+        if ((bool)$value) {
           $content_types[] = str_replace('nodeblock_', '', $name);
         }
       }
     }
   }
-  if(!empty($content_types) && !empty($blocks)) {
+  if (!empty($content_types) && !empty($blocks)) {
     $query = db_select('node', 'n')
-         ->fields('n', array ('nid'))
+         ->fields('n', array('nid'))
          ->condition('n.type', $content_types);
     $result = $query->execute()->fetchAll();
 
-    if(!empty($result)) {
-      foreach($result as $value) {
+    if (!empty($result)) {
+      foreach ($result as $value) {
         $nids[$value->nid] = $value->nid;
-      }
-      if(!empty($nids)) {
+      } 
+      if (!empty($nids)) {
         $blocks = array_diff_key($blocks, $nids);
-        if(!empty($blocks)) {
-          foreach($blocks as $name) {
+        if (!empty($blocks)) {
+          foreach ($blocks as $name) {
             variable_del($name);
           }
         }
@@ -148,10 +153,10 @@ function nodeblock_update_7102() {
       foreach ($results as $nid) {
         $settings = variable_get('nodeblock_block_' . $nid, $defaults);
         $settings = array_merge($defaults, $settings);
-        if(isset($settings['teaser']) && $settings['teaser'] == 1) {
+        if (isset($settings['teaser']) && $settings['teaser'] == 1) {
           $settings['view_mode'] == 'teaser';
         }
-        if(isset($settings['links']) && $settings['links'] == 1) {
+        if (isset($settings['links']) && $settings['links'] == 1) {
           $settings['node_link'] = 1;
           $settings['comment_link'] = 1;
         }
