diff --git a/webform_import.module b/webform_import.module
index 1e22d6e..0f67133 100644
--- a/webform_import.module
+++ b/webform_import.module
@@ -18,29 +18,29 @@
 function webform_import_help($section = 'admin/help#webform', $arg = NULL) {
   $output = '';
   switch ($section) {
-  case 'node/%/webform/import':
-    $output = '<p>' . t('Webform import enables the upload of delimited files to fill in data.') . '</p>';
-    $output .= '<p>' . t('To upload data to this form:');
-    $items = array(
-      array(
-        'data' => 'Create a webform',
-      ),
-      array(
-        'data' => 'Create a delimited file with the data you want uploaded',
-        'children' => array(
-          'data' => 'Make sure that you have a single header row consisting of either the Component names or keys',
+    case 'node/%/webform/import':
+      $output = '<p>' . t('Webform import enables the upload of delimited files to fill in data.') . '</p>';
+      $output .= '<p>' . t('To upload data to this form:');
+      $items = array(
+        array(
+          'data' => 'Create a webform',
         ),
-      ),
-      array(
-        'data' => 'Go to node/??? > Results > Upload',
-      ),
-      array(
-        'data' => 'Choose the type of delimiter, which type of header you are using and upload the file',
-      ),
-    );
-    $output .= theme("item_list", $items, $title, "ol");
-    $output .= '</p>';
-    break;
+        array(
+          'data' => 'Create a delimited file with the data you want uploaded',
+          'children' => array(
+            'data' => 'Make sure that you have a single header row consisting of either the Component names or keys',
+          ),
+        ),
+        array(
+          'data' => 'Go to node/??? > Results > Upload',
+        ),
+        array(
+          'data' => 'Choose the type of delimiter, which type of header you are using and upload the file',
+        ),
+      );
+      $output .= theme("item_list", $items, $title, "ol");
+      $output .= '</p>';
+      break;
   }
   return $output;
 }
@@ -151,8 +151,14 @@ function webform_import_form($node, $form_state) {
       $style = 'font-weight: bold';
     }
     $component_table_rows[] = array(
-      array( 'data' => $component['name'], 'style' => $style ),
-      array( 'data' => $component['form_key'], 'style' => $style ),
+      array(
+        'data' => $component['name'],
+        'style' => $style,
+      ),
+      array(
+        'data' => $component['form_key'],
+        'style' => $style,
+      ),
     );
   }
 
@@ -192,7 +198,7 @@ function webform_import_form($node, $form_state) {
   $form['upload'] = array(
     '#type' => 'file',
     '#title' => t('Delimited data file'),
-    '#description' => t('Choose the data file containing the data you want uploaded. All rows with a submission id (SID) will be updated. Those without a submission id will be inserted.')
+    '#description' => t('Choose the data file containing the data you want uploaded. All rows with a submission id (SID) will be updated. Those without a submission id will be inserted.'),
   );
 
   $form['delimiter'] = array(
@@ -241,10 +247,10 @@ function webform_import_form_submit($form, $form_state) {
   $sids = array();
   // Define your limits for the submission here.
   $limits = array(
-    'extensions' => 'csv tsv txt'
+    'extensions' => 'csv tsv txt',
   );
   $validators = array(
-    'file_validate_extensions' => array($limits['extensions'])
+    'file_validate_extensions' => array($limits['extensions']),
   );
 
   $webform = node_load(intval($form_state['values']['nid']));
@@ -253,7 +259,7 @@ function webform_import_form_submit($form, $form_state) {
   $field_key = $form_state['values']['field_keys'];
 
   $keys = array();
-  $keys[$field_key === 'name' ? 'Submission ID' : 'SID'] = array( 'form_key' => 'SID');
+  $keys[$field_key === 'name' ? 'Submission ID' : 'SID'] = array('form_key' => 'SID');
   foreach ($webform->webform['components'] as $cid => $component) {
     $component['cid'] = $cid;
     $keys[trim($component[$field_key])] = $component;
@@ -262,7 +268,7 @@ function webform_import_form_submit($form, $form_state) {
   $cids = array();
   $fields = array();
   if ($file = file_save_upload('upload', $validators)) {
-   // This makes php auto-detect mac line endings.
+    // This makes php auto-detect mac line endings.
     ini_set('auto_detect_line_endings', TRUE);
     if (($handle = fopen($file->destination, 'r')) !== FALSE) {
       $data = array();
@@ -292,11 +298,11 @@ function webform_import_form_submit($form, $form_state) {
           $fields = array_flip($data);
 
           foreach ($keys as $k => $component) {
-    if(!strcmp($k,"name")){
+            if (!strcmp($k, "name")) {
               if ($component['mandatory'] && !isset($fields[$k])) {
-                  form_set_error('upload', t('Column @k is required but could not be found in this file. Alter the file or the webform and try again.', array('@k' => $k)));
-                }
-    }
+                form_set_error('upload', t('Column @k is required but could not be found in this file. Alter the file or the webform and try again.', array('@k' => $k)));
+              }
+            }
           }
 
           $fields = $data;
@@ -316,7 +322,7 @@ function webform_import_form_submit($form, $form_state) {
                 continue 2;
               }
               else {
-                continue 1;  // Skip field if empty.
+                continue 1; // Skip field if empty.
               }
             }
 
@@ -331,7 +337,7 @@ function webform_import_form_submit($form, $form_state) {
               }
             }
             // It's a real component, parse and add to $sub_array.
-            elseif (($cid = isset($cids[$k]) ? $cids[$k]:FALSE) !== FALSE) {
+            elseif (($cid = isset($cids[$k]) ? $cids[$k] : FALSE) !== FALSE) {
               $type = $keys[$fields[$k]]['type'];
               // Date and time components.
               if ($type === 'date' || $type === 'time') {
@@ -370,17 +376,17 @@ function webform_import_form_submit($form, $form_state) {
             $sids[] = webform_submission_insert($webform, $submission);
           }
         }
-        else{
-          drupal_set_message(t('Row @c is malformed and will need to be fixed and resubmitted.', array('@c' => ($c+1))), 'warning');
+        else {
+          drupal_set_message(t('Row @c is malformed and will need to be fixed and resubmitted.', array('@c' => ($c + 1))), 'warning');
         }
       }
       fclose($handle);
-  $destination = $file['source'];
+      $destination = $file['source'];
       if (!file_delete($destination)) {
         watchdog('webform-import', 'File could not be deleted (cleanup process). File: %file at path %path . !details', array('%file' => $file->filename, '%path' => $file->destination, '!results' => '<br />\n<pre>' . htmlentities(print_r($form_state['values'], TRUE)) . '</pre>'), WATCHDOG_ERROR);
       }
-      drupal_set_message(t('We uploaded @count sids', array( '@count' => count($sids))));
-      watchdog('webform-import', 'Submission file uploaded to %title. !details', array('%title' => check_plain($node->title), '!results' => '<br />\n<pre>'. htmlentities(print_r($form_state['values'], TRUE)) . '</pre>'));
+      drupal_set_message(t('We uploaded @count sids', array('@count' => count($sids))));
+      watchdog('webform-import', 'Submission file uploaded to %title. !details', array('%title' => check_plain($node->title), '!results' => '<br />\n<pre>' . htmlentities(print_r($form_state['values'], TRUE)) . '</pre>'));
     }
     else {
       form_set_error('upload', t('File could not be opened for reading.'));
