diff --git a/xmlsitemap.install b/xmlsitemap.install
index f89a030..44ef8d2 100644
--- a/xmlsitemap.install
+++ b/xmlsitemap.install
@@ -570,7 +570,7 @@ function _xmlsitemap_sitemap_rehash_all() {
 }
 
 /**
- * Add new primary key including the language
+ * Add new primary key including the language.
  */
 function xmlsitemap_update_7204() {
   db_drop_primary_key('xmlsitemap');
diff --git a/xmlsitemap_taxonomy/xmlsitemap_taxonomy.module b/xmlsitemap_taxonomy/xmlsitemap_taxonomy.module
index 7c23d63..d7cd83e 100644
--- a/xmlsitemap_taxonomy/xmlsitemap_taxonomy.module
+++ b/xmlsitemap_taxonomy/xmlsitemap_taxonomy.module
@@ -124,11 +124,11 @@ function xmlsitemap_taxonomy_term_insert(stdClass $term) {
  */
 function xmlsitemap_taxonomy_term_update(stdClass $term) {
   $link = xmlsitemap_taxonomy_create_link($term);
-  if (is_array($link['language']) && !empty($link['language'])){
-    foreach ($link['language'] as $lang){
-        $lang_link = $link;
-        $lang_link['language'] = $lang;
-        xmlsitemap_link_save($lang_link, array($link['type'] => $term));
+  if (is_array($link['language']) && !empty($link['language'])) {
+    foreach ($link['language'] as $lang) {
+      $lang_link = $link;
+      $lang_link['language'] = $lang;
+      xmlsitemap_link_save($lang_link, array($link['type'] => $term));
     }
   }
   else {
@@ -157,7 +157,6 @@ function xmlsitemap_taxonomy_entity_translation_delete($entity_type, $entity, $l
   }
 }
 
-
 /**
  * Implements hook_field_extra_fields().
  */
