diff --git a/structured_data.admin.inc b/structured_data.admin.inc
index 43e3a3e..b790e8b 100644
--- a/structured_data.admin.inc
+++ b/structured_data.admin.inc
@@ -1,4 +1,5 @@
 <?php
+
 /**
  * @file
  * Administrative pages for the structured_data module.
@@ -15,14 +16,14 @@ function structured_data_settings_form($form, &$form_state) {
     '#collapsible' => TRUE,
   );
   $form['marketing']['structured_data_site_name_custom'] = array(
-    '#type' =>'textfield',
+    '#type' => 'textfield',
     '#title' => t('Official site name'),
     '#description' => t('Site name or Company name, must be reasonably similar to your domain name. If left blank, %name will be used.', array('%name' => $site_name)),
     '#default_value' => variable_get('structured_data_site_name_custom', ''),
     '#attributes' => array('placeholder' => check_plain($site_name)),
   );
   $form['marketing']['structured_data_site_name_alternative'] = array(
-    '#type' =>'textfield',
+    '#type' => 'textfield',
     '#title' => t('Alternative site name (optional)'),
     '#description' => t('An alternate name you want Search Engines to consider.'),
     '#default_value' => variable_get('structured_data_site_name_alternative', ''),
@@ -52,7 +53,7 @@ function structured_data_settings_form($form, &$form_state) {
     drupal_set_message(t('Logos with !problem will be rejected by Google.', array('!problem' => $problem)), 'warning');
   }
   $form['marketing']['structured_data_site_logo_current'] = array(
-    '#type' =>'item',
+    '#type' => 'item',
     '#title' => t('Image that will be presented to search engines as your logo:'),
     '#markup' => theme('image', array('path' => $logo_path)),
   );
@@ -76,7 +77,7 @@ function structured_data_settings_form($form, &$form_state) {
     '#collapsed' => TRUE,
   );
   $form['corporate']['structured_data_phone'] = array(
-    '#type' =>'textfield',
+    '#type' => 'textfield',
     '#title' => t('Phone number'),
     '#default_value' => variable_get('structured_data_phone', ''),
   );
@@ -138,27 +139,27 @@ function structured_data_settings_form($form, &$form_state) {
   );
   // Address fields.
   $form['local']['structured_data_address'] = array(
-    '#type' =>'textfield',
+    '#type' => 'textfield',
     '#title' => t('Address'),
     '#size' => 120,
     '#default_value' => variable_get('structured_data_address', ''),
   );
   $form['local']['structured_data_city'] = array(
-    '#type' =>'textfield',
+    '#type' => 'textfield',
     '#title' => t('City'),
     '#default_value' => variable_get('structured_data_city', ''),
   );
   $form['local']['structured_data_state'] = array(
-    '#type' =>'textfield',
+    '#type' => 'textfield',
     '#title' => t('State'),
     '#default_value' => variable_get('structured_data_state', ''),
   );
   $form['local']['structured_data_zip'] = array(
-    '#type' =>'textfield',
+    '#type' => 'textfield',
     '#title' => t('Zip'),
     '#default_value' => variable_get('structured_data_zip', ''),
   );
-  //Social links fields
+  // Social links fields.
   $form['social_links'] = array(
     '#type' => 'fieldset',
     '#title' => t('Social Links'),
@@ -213,12 +214,12 @@ function structured_data_settings_form_submit($form, &$form_state) {
   // Create a file usage record for the logo file uploaded.
   global $user;
   $social_links = array();
-  for($i = 1; $i > 0; $i++) {
-    if(!isset($form_state['input']['social_link_' . $i])) {
-      $count = $i -1;
+  for ($i = 1; $i > 0; $i++) {
+    if (!isset($form_state['input']['social_link_' . $i])) {
+      $count = $i - 1;
       break;
     }
-    if($form_state['input']['social_link_' . $i] == '') {
+    if ($form_state['input']['social_link_' . $i] == '') {
       continue;
     }
     $social_links[] = $form_state['input']['social_link_' . $i];
@@ -226,7 +227,7 @@ function structured_data_settings_form_submit($form, &$form_state) {
   variable_set('num_of_fields', count($social_links));
   variable_set('social_links', $social_links);
 
-  for($i = 1; $i <= $count; $i++) {
+  for ($i = 1; $i <= $count; $i++) {
     unset($form_state['values'][$i]);
   }
 
@@ -236,6 +237,9 @@ function structured_data_settings_form_submit($form, &$form_state) {
 
 }
 
+/**
+ * Add product image field to the social link form.
+ */
 function add_social_link_form_ajax_add_product_image($form, &$form_state) {
   variable_set('num_of_fields', variable_get('num_of_fields') + 1);
   return $form['social_links']['structured_data_social_links_wrapper'];
diff --git a/structured_data.install b/structured_data.install
index c881066..148cd3d 100644
--- a/structured_data.install
+++ b/structured_data.install
@@ -1,4 +1,5 @@
 <?php
+
 /**
  * @file
  * Install, Uninstall, and Update hooks for structured_data module.
@@ -26,7 +27,6 @@ function structured_data_uninstall() {
   variable_del('structured_data_phone_options');
 }
 
-
 /**
  * Remove settings to use default site name and logo, we now fall back to those.
  */
diff --git a/structured_data.module b/structured_data.module
index 0741f27..8974a13 100644
--- a/structured_data.module
+++ b/structured_data.module
@@ -1,4 +1,5 @@
 <?php
+
 /**
  * @file
  * Annotate your content to generate Rich Search Snippets.
@@ -9,7 +10,7 @@
  */
 function structured_data_permission() {
   return array(
-    'configure structured data' =>  array(
+    'configure structured data' => array(
       'title' => t('Configure structured data'),
       'description' => t('Determine which elements should be included in Rich Snippits.'),
     ),
@@ -76,13 +77,12 @@ function structured_data_preprocess_html(&$vars) {
   $corp_data = structured_data_get_corporate_info();
   $structured_data = array_merge($structured_data, $corp_data);
 
-  //Add social links.
+  // Add social links.
   $social_links = structured_data_get_social_link_info();
   if ($social_links) {
     $structured_data['sameAs'] = $social_links;
   }
 
-
   // If there is any sructured data, add it to the page.
   if (!empty($structured_data)) {
     $json_ld_script = array(
@@ -97,7 +97,8 @@ function structured_data_preprocess_html(&$vars) {
 /**
  * Gets only the site name.
  *
- * @return (string) Site name.
+ * @return string
+ *   Site name.
  */
 function structured_data_get_site_name() {
   // Get the site name.
@@ -114,7 +115,8 @@ function structured_data_get_site_name() {
 /**
  * Gets the a URL to the site logo.
  *
- * @return (string) Path to a suitable logo file.
+ * @return string
+ *   Path to a suitable logo file.
  */
 function structured_data_get_site_logo() {
   if ($custom_logo = variable_get('structured_data_site_logo_custom', FALSE)) {
@@ -133,7 +135,8 @@ function structured_data_get_site_logo() {
 /**
  * Gets the local business data.
  *
- * @return (array) Data matching schema.org definition for address.
+ * @return array
+ *   Data matching schema.org definition for address.
  */
 function structured_data_get_local_info() {
   $data = array(
@@ -160,7 +163,8 @@ function structured_data_get_local_info() {
 /**
  * Gets the corporate contact data.
  *
- * @return (array) Data matching schema.org definition for contactPoint.
+ * @return array
+ *   Data matching schema.org definition for contactPoint.
  */
 function structured_data_get_corporate_info() {
   $data = array();
@@ -183,17 +187,19 @@ function structured_data_get_corporate_info() {
 
   return $data;
 }
+
 /**
  * Gets the social link data.
  *
- * @return (array) Data matching schema.org definition for sameAs.
+ * @return array
+ *   Data matching schema.org definition for sameAs.
  */
 function structured_data_get_social_link_info() {
   $data = array();
 
-  if($social_links = variable_get('social_links', FALSE)) {
+  if ($social_links = variable_get('social_links', FALSE)) {
     return $social_links;
   }
 
-  return false;
+  return FALSE;
 }
