Passed
Push — master ( d59b87...68e600 )
by Brian
04:40
created
includes/wpinv-tax-functions.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -256,8 +256,9 @@
 block discarded – undo
256 256
 }
257 257
 
258 258
 function wpinv_cart_needs_tax_address_fields() {
259
-    if( !wpinv_is_cart_taxed() )
260
-        return false;
259
+    if( !wpinv_is_cart_taxed() ) {
260
+            return false;
261
+    }
261 262
 
262 263
     return ! did_action( 'wpinv_after_cc_fields', 'wpinv_default_cc_address_fields' );
263 264
 }
Please login to merge, or discard this patch.
includes/admin/register-settings.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -611,10 +611,11 @@
 block discarded – undo
611 611
 	foreach ( $args['options'] as $key => $option ) :
612 612
 		$sanitize_key = wpinv_sanitize_key( $key );
613 613
         
614
-        if ( isset( $wpinv_options['gateways'][ $key ] ) )
615
-			$enabled = '1';
616
-		else
617
-			$enabled = null;
614
+        if ( isset( $wpinv_options['gateways'][ $key ] ) ) {
615
+        			$enabled = '1';
616
+        } else {
617
+					$enabled = null;
618
+		}
618 619
 
619 620
 		echo '<input name="wpinv_settings[' . esc_attr( $args['id'] ) . '][' . $sanitize_key . ']" id="wpinv_settings[' . $sanitize_id . '][' . $sanitize_key . ']" type="checkbox" value="1" ' . checked('1', $enabled, false) . '/>&nbsp;';
620 621
 		echo '<label for="wpinv_settings[' . $sanitize_id . '][' . $sanitize_key . ']">' . esc_html( $option['admin_label'] ) . '</label><br/>';
Please login to merge, or discard this patch.