Code Duplication    Length = 9-9 lines in 2 locations

includes/wpinv-template-functions.php 2 locations

@@ 976-984 (lines=9) @@
973
        $address_fields[] = wpinv_country_name( $billing_country );
974
    }
975
    
976
    if ( !empty( $address_fields ) ) {
977
        $address_fields = implode( ", ", $address_fields );
978
        
979
        if ( !empty( $billing_details['zip'] ) ) {
980
            $address_fields .= ' ' . $billing_details['zip'];
981
        }
982
        
983
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
984
    }
985
    
986
    if ( $address_row ) {
987
        $output .= '<div class="address">' . $address_row . '</div>';
@@ 1837-1845 (lines=9) @@
1834
        $address_fields[] = wpinv_country_name( $billing_country );
1835
    }
1836
    
1837
    if ( !empty( $address_fields ) ) {
1838
        $address_fields = implode( ", ", $address_fields );
1839
        
1840
        if ( !empty( $billing_details['zip'] ) ) {
1841
            $address_fields .= ' ' . $billing_details['zip'];
1842
        }
1843
        
1844
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
1845
    }
1846
    ob_start();
1847
    ?>
1848
    <table class="table table-bordered table-sm wpi-billing-details">