diff --git a/apachesolr_exclude_node.install b/apachesolr_exclude_node.install
index e01ede5..81da8e5 100644
--- a/apachesolr_exclude_node.install
+++ b/apachesolr_exclude_node.install
@@ -4,7 +4,7 @@
  * @file
  * Install file for the Apache Solr Exclude Node module.
  */
- 
+
 /**
  * Implements hook_schema().
  */
@@ -24,7 +24,7 @@ function apachesolr_exclude_node_schema() {
           'type' => 'int',
           'unsigned' => TRUE,
           'not null' => TRUE,
-        ),        
+        ),
         'exclude' => array(
           'description' => 'Exclude status. 0 = no, 1 = yes',
           'type' => 'int',
@@ -35,7 +35,7 @@ function apachesolr_exclude_node_schema() {
       ),
       'indexes' => array(
         'nid' => array('nid'),
-      ),      
+      ),
       'primary key' => array('vid'),
     ),
   );
@@ -44,7 +44,7 @@ function apachesolr_exclude_node_schema() {
 /**
  * Implements hook_unnstall().
  */
-function apachesolr_exclude_node_uninstall() {  
-  // Deleting variables
+function apachesolr_exclude_node_uninstall() {
+  // Deleting variables.
   db_query("DELETE FROM {variable} WHERE name LIKE 'apachesolr_exclude_node_%'");
-}
\ No newline at end of file
+}
diff --git a/apachesolr_exclude_node.module b/apachesolr_exclude_node.module
index 6b8f0fa..3afb069 100644
--- a/apachesolr_exclude_node.module
+++ b/apachesolr_exclude_node.module
@@ -25,7 +25,7 @@ function apachesolr_exclude_node_form_node_type_form_alter(&$form, $form_state)
     '#type' => 'checkbox',
     '#title' => t('Enable excluding of nodes from Apache Solr'),
     '#default_value' => variable_get('apachesolr_exclude_node_enable_' . $form['#node_type']->type, 0),
-    '#description' => t('Check this box to enable excluding of specific nodes from Apache Solr for this content type.')
+    '#description' => t('Check this box to enable excluding of specific nodes from Apache Solr for this content type.'),
   );
 }
 
@@ -33,7 +33,7 @@ function apachesolr_exclude_node_form_node_type_form_alter(&$form, $form_state)
  * Implements hook_form_alter().
  */
 function apachesolr_exclude_node_form_alter(&$form, $form_state, $form_id) {
-  if (strpos($form_id, '_node_form') !== FALSE && user_access('exclude nodes from apache solr') && variable_get('apachesolr_exclude_node_enable_'. $form['type']['#value'], 0)) {
+  if (strpos($form_id, '_node_form') !== FALSE && user_access('exclude nodes from apache solr') && variable_get('apachesolr_exclude_node_enable_' . $form['type']['#value'], 0)) {
     $node = $form['#node'];
     $form['apachesolr_exclude_node'] = array(
       '#type' => 'fieldset',
@@ -45,9 +45,9 @@ function apachesolr_exclude_node_form_alter(&$form, $form_state, $form_id) {
       '#group' => 'additional_settings',
       '#attached' => array(
         'js' => array(
-          'vertical-tabs' => drupal_get_path('module', 'apachesolr_exclude_node') . "/apachesolr_exclude_node_vertical_tabs.js"
+          'vertical-tabs' => drupal_get_path('module', 'apachesolr_exclude_node') . '/apachesolr_exclude_node_vertical_tabs.js',
         ),
-      )
+      ),
     );
     $form['apachesolr_exclude_node']['apachesolr_exclude_node_enabled'] = array(
       '#type' => 'checkbox',
@@ -84,7 +84,7 @@ function apachesolr_exclude_node_node_update($node) {
   if (!$node->is_new && !empty($node->revision) && $node->vid) {
     apachesolr_exclude_node_node_insert($node);
   }
-  else if (!empty($node->apachesolr_exclude_node_enabled)) {
+  elseif (!empty($node->apachesolr_exclude_node_enabled)) {
     db_merge('apachesolr_exclude_node')
       ->key(array('vid' => $node->vid))
       ->fields(array(
@@ -143,24 +143,24 @@ function apachesolr_exclude_node_apachesolr_entity_info_alter(&$entity_info) {
 function apachesolr_exclude_node_apachesolr_index_node_status_callback($entity_id, $type) {
   if ($type == 'node') {
     $node = node_load($entity_id, NULL, TRUE);
-    if (is_object($node) && variable_get('apachesolr_exclude_node_enable_'. $node->type, 0)) {
+    if (is_object($node) && variable_get('apachesolr_exclude_node_enable_' . $node->type, 0)) {
       if (isset($node->apachesolr_exclude_node_enabled) && $node->apachesolr_exclude_node_enabled) {
         return 0;
       }
     }
   }
   return 1;
-} 
+}
 
 /**
  * Implements hook_feeds_node_processor_targets_alter().
  */
 function apachesolr_exclude_node_feeds_processor_targets_alter(&$targets, $processor, $content_type) {
-  if (variable_get('apachesolr_exclude_node_enable_'. $content_type, 0)) {
+  if (variable_get('apachesolr_exclude_node_enable_' . $content_type, 0)) {
     $targets['apachesolr_exclude_node_enabled'] = array(
       'name' => t('apachesolr_exclude_node: enabled'),
       'description' => t('Value should be 1 or 0, representing whether the node will be indexed with Apache Solr or not.'),
-      'callback' => 'apachesolr_exclude_node_feeds_set_target'
+      'callback' => 'apachesolr_exclude_node_feeds_set_target',
     );
   }
 }
@@ -171,5 +171,5 @@ function apachesolr_exclude_node_feeds_processor_targets_alter(&$targets, $proce
  * This callback asigns input from the parser to the appropriate node property.
  */
 function apachesolr_exclude_node_feeds_set_target($source, $node, $target, $value) {
-  $node->$target = (bool)$value;
+  $node->$target = (bool) $value;
 }
