@@ -256,8 +256,9 @@ |
||
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 | } |
@@ -612,10 +612,11 @@ discard block |
||
612 | 612 | foreach ( $args['options'] as $key => $option ) : |
613 | 613 | $sanitize_key = wpinv_sanitize_key( $key ); |
614 | 614 | |
615 | - if ( isset( $wpinv_options['gateways'][ $key ] ) ) |
|
616 | - $enabled = '1'; |
|
617 | - else |
|
618 | - $enabled = null; |
|
615 | + if ( isset( $wpinv_options['gateways'][ $key ] ) ) { |
|
616 | + $enabled = '1'; |
|
617 | + } else { |
|
618 | + $enabled = null; |
|
619 | + } |
|
619 | 620 | |
620 | 621 | 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) . '/> '; |
621 | 622 | echo '<label for="wpinv_settings[' . $sanitize_id . '][' . $sanitize_key . ']">' . esc_html( $option['admin_label'] ) . '</label><br/>'; |
@@ -979,7 +980,8 @@ discard block |
||
979 | 980 | <td class="wpinv_tax_action"><span class="wpinv_remove_tax_rate button-secondary"><?php _e( 'Remove Rate', 'invoicing' ); ?></span></td> |
980 | 981 | </tr> |
981 | 982 | <?php endforeach; ?> |
982 | - <?php else : ?> |
|
983 | + <?php else { |
|
984 | + : ?> |
|
983 | 985 | <tr> |
984 | 986 | <td class="wpinv_tax_country"> |
985 | 987 | <?php |
@@ -990,7 +992,9 @@ discard block |
||
990 | 992 | 'show_option_none' => false, |
991 | 993 | 'class' => 'wpinv-tax-country wpi_select2', |
992 | 994 | 'placeholder' => __( 'Choose a country', 'invoicing' ) |
993 | - ) ); ?> |
|
995 | + ) ); |
|
996 | +} |
|
997 | +?> |
|
994 | 998 | </td> |
995 | 999 | <td class="wpinv_tax_state"> |
996 | 1000 | <?php echo wpinv_html_text( array( |