Passed
Push — master ( 6929e7...c24352 )
by Brian
10:18 queued 05:36
created
includes/libraries/wpinv-euvat/class-wpinv-euvat.php 1 patch
Braces   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -712,7 +712,7 @@  discard block
 block discarded – undo
712 712
                 if ( !empty( $load_xml ) && !empty( $load_xml->geoplugin_countryCode ) ) {
713 713
                     $wpinv_ip_address_country = (string)$load_xml->geoplugin_countryCode;
714 714
                 }
715
-            }elseif(!empty( $ip )){
715
+            } elseif(!empty( $ip )){
716 716
                 $url = 'http://ip-api.com/json/' . $ip;
717 717
                 $response = wp_remote_get($url);
718 718
 
@@ -1513,16 +1513,18 @@  discard block
 block discarded – undo
1513 1513
 
1514 1514
         if ( !empty( $tax_rates ) ) {
1515 1515
             foreach ( $tax_rates as $key => $tax_rate ) {
1516
-                if ( $country != $tax_rate['country'] )
1517
-                    continue;
1516
+                if ( $country != $tax_rate['country'] ) {
1517
+                                    continue;
1518
+                }
1518 1519
 
1519 1520
                 if ( !empty( $tax_rate['global'] ) ) {
1520 1521
                     if ( 0 !== $tax_rate['rate'] || !empty( $tax_rate['rate'] ) ) {
1521 1522
                         $rate = number_format( $tax_rate['rate'], 4 );
1522 1523
                     }
1523 1524
                 } else {
1524
-                    if ( empty( $tax_rate['state'] ) || strtolower( $state ) != strtolower( $tax_rate['state'] ) )
1525
-                        continue;
1525
+                    if ( empty( $tax_rate['state'] ) || strtolower( $state ) != strtolower( $tax_rate['state'] ) ) {
1526
+                                            continue;
1527
+                    }
1526 1528
 
1527 1529
                     $state_rate = $tax_rate['rate'];
1528 1530
                     if ( 0 !== $state_rate || !empty( $state_rate ) ) {
Please login to merge, or discard this patch.