Index: src/wp-includes/taxonomy.php
===================================================================
--- src/wp-includes/taxonomy.php	(revision 40258)
+++ src/wp-includes/taxonomy.php	(working copy)
@@ -3847,7 +3847,7 @@
 function get_term_link( $term, $taxonomy = '' ) {
 	global $wp_rewrite;
 
-	if ( !is_object($term) ) {
+	if ( ! is_object( $term ) ) {
 		if ( is_int( $term ) ) {
 			$term = get_term( $term, $taxonomy );
 		} else {
@@ -3855,7 +3855,7 @@
 		}
 	}
 
-	if ( !is_object($term) )
+	if ( ! is_object( $term ) )
 		$term = new WP_Error('invalid_term', __('Empty Term'));
 
 	if ( is_wp_error( $term ) )
@@ -3863,12 +3863,12 @@
 
 	$taxonomy = $term->taxonomy;
 
-	$termlink = $wp_rewrite->get_extra_permastruct($taxonomy);
+	$termlink = $wp_rewrite->get_extra_permastruct( $taxonomy );
 
 	$slug = $term->slug;
-	$t = get_taxonomy($taxonomy);
+	$t = get_taxonomy( $taxonomy );
 
-	if ( empty($termlink) ) {
+	if ( empty( $termlink ) ) {
 		if ( 'category' == $taxonomy )
 			$termlink = '?cat=' . $term->term_id;
 		elseif ( $t->query_var )
@@ -3875,20 +3875,20 @@
 			$termlink = "?$t->query_var=$slug";
 		else
 			$termlink = "?taxonomy=$taxonomy&term=$slug";
-		$termlink = home_url($termlink);
+		$termlink = home_url( $termlink );
 	} else {
 		if ( $t->rewrite['hierarchical'] ) {
 			$hierarchical_slugs = array();
 			$ancestors = get_ancestors( $term->term_id, $taxonomy, 'taxonomy' );
-			foreach ( (array)$ancestors as $ancestor ) {
-				$ancestor_term = get_term($ancestor, $taxonomy);
+			foreach ( ( array )$ancestors as $ancestor ) {
+				$ancestor_term = get_term( $ancestor, $taxonomy );
 				$hierarchical_slugs[] = $ancestor_term->slug;
 			}
-			$hierarchical_slugs = array_reverse($hierarchical_slugs);
+			$hierarchical_slugs = array_reverse( $hierarchical_slugs );
 			$hierarchical_slugs[] = $slug;
-			$termlink = str_replace("%$taxonomy%", implode('/', $hierarchical_slugs), $termlink);
+			$termlink = str_replace( "%$taxonomy%", implode( '/', $hierarchical_slugs ), $termlink );
 		} else {
-			$termlink = str_replace("%$taxonomy%", $slug, $termlink);
+			$termlink = str_replace( "%$taxonomy%", $slug, $termlink );
 		}
 		$termlink = home_url( user_trailingslashit($termlink, 'category') );
 	}
