Code Duplication    Length = 9-9 lines in 2 locations

includes/wpinv-template-functions.php 2 locations

@@ 956-964 (lines=9) @@
953
        $address_fields[] = wpinv_country_name( $billing_country );
954
    }
955
    
956
    if ( !empty( $address_fields ) ) {
957
        $address_fields = implode( ", ", $address_fields );
958
        
959
        if ( !empty( $billing_details['zip'] ) ) {
960
            $address_fields .= ' ' . $billing_details['zip'];
961
        }
962
        
963
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
964
    }
965
    
966
    if ( $address_row ) {
967
        $output .= '<div class="address">' . $address_row . '</div>';
@@ 1808-1816 (lines=9) @@
1805
        $address_fields[] = wpinv_country_name( $billing_country );
1806
    }
1807
    
1808
    if ( !empty( $address_fields ) ) {
1809
        $address_fields = implode( ", ", $address_fields );
1810
        
1811
        if ( !empty( $billing_details['zip'] ) ) {
1812
            $address_fields .= ' ' . $billing_details['zip'];
1813
        }
1814
        
1815
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
1816
    }
1817
    ob_start();
1818
    ?>
1819
    <table class="table table-bordered table-sm wpi-billing-details">