From b4063cd4dd8d3173a9327b440a727708dafc4947 Mon Sep 17 00:00:00 2001
From: Erick Hitter <ehitter@gmail.com>
Date: Sun, 25 Aug 2013 11:32:51 -0400
Subject: [PATCH] More coding standards tweaks

---
 tag-dropdown-widget.php | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/tag-dropdown-widget.php b/tag-dropdown-widget.php
index c8d8659..b7b12db 100644
--- a/tag-dropdown-widget.php
+++ b/tag-dropdown-widget.php
@@ -178,7 +178,7 @@ class taxonomy_dropdown_widget_plugin {
 		if ( $limit )
 			$options[ 'number' ] = $limit;
 
-		if ( !empty( $incexc_ids ) )
+		if ( ! empty( $incexc_ids ) )
 			$options[ $incexc ] = $incexc_ids;
 
 		$options = apply_filters( 'taxonomy_dropdown_widget_options', $options, $id );
@@ -187,11 +187,11 @@ class taxonomy_dropdown_widget_plugin {
 		//Get terms
 		$terms = get_terms( $taxonomy, $options );
 
-		if ( !is_wp_error( $terms ) && is_array( $terms ) && !empty( $terms ) ) {
+		if ( ! is_wp_error( $terms ) && is_array( $terms ) && ! empty( $terms ) ) {
 			//CSS ID
 			if ( is_int( $id ) )
 				$css_id = ' id="taxonomy_dropdown_widget_dropdown_' . $id . '"';
-			elseif ( is_string( $id ) && !empty( $id ) )
+			elseif ( is_string( $id ) && ! empty( $id ) )
 				$css_id = ' id="' . $id . '"';
 
 			//Start dropdown
@@ -255,7 +255,7 @@ class taxonomy_dropdown_widget_plugin {
 
 		if ( is_array( $options ) ) {
 			foreach ( $keys as $key ) {
-				if ( !array_key_exists( $key, $options ) )
+				if ( ! array_key_exists( $key, $options ) )
 					continue;
 
 				$value = $options[ $key ];
@@ -271,7 +271,7 @@ class taxonomy_dropdown_widget_plugin {
 					case 'cutoff':
 						$value = sanitize_text_field( $value );
 
-						if ( !empty( $value ) || $key == 'title' )
+						if ( ! empty( $value ) || $key == 'title' )
 							$options_sanitized[ $key ] = $value;
 					break;
 
@@ -385,7 +385,7 @@ class taxonomy_dropdown_widget extends WP_Widget {
 			// Wrapper and title
 			$output = $before_widget;
 
-			if ( !empty( $title ) )
+			if ( ! empty( $title ) )
 				$output .= $before_title . apply_filters( 'taxonomy_dropdown_widget_title', '<label for="taxonomy_dropdown_widget_dropdown_' . $this->number . '">' . $title . '</label>', $this->number ) . $after_title;
 
 			// Widget
@@ -564,7 +564,7 @@ function taxonomy_dropdown_widget( $options = array(), $id = '' ) {
  ** LEGACY FUNCTIONS FOR BACKWARDS COMPATIBILITY
  **/
 
-if ( !function_exists( 'generateTagDropdown' ) ):
+if ( ! function_exists( 'generateTagDropdown' ) ):
 	/**
 	 * Build tag dropdown based on provided arguments
 	 * @since 1.7
@@ -582,7 +582,7 @@ if ( !function_exists( 'generateTagDropdown' ) ):
 	}
 endif;
 
-if ( !function_exists( 'TDW_direct' ) ):
+if ( ! function_exists( 'TDW_direct' ) ):
 	/**
 	 * Build tag dropdown based on provided arguments
 	 * @since 1.6
@@ -611,7 +611,7 @@ if ( !function_exists( 'TDW_direct' ) ):
 	}
 endif;
 
-if ( !function_exists( 'makeTagDropdown' ) ):
+if ( ! function_exists( 'makeTagDropdown' ) ):
 	/**
 	 * Build tag dropdown based on provided arguments
 	 * @since 1.3
-- 
GitLab