Code Duplication    Length = 9-9 lines in 2 locations

includes/wpinv-template-functions.php 2 locations

@@ 963-971 (lines=9) @@
960
        $address_fields[] = wpinv_country_name( $billing_country );
961
    }
962
    
963
    if ( !empty( $address_fields ) ) {
964
        $address_fields = implode( ", ", $address_fields );
965
        
966
        if ( !empty( $billing_details['zip'] ) ) {
967
            $address_fields .= ' ' . $billing_details['zip'];
968
        }
969
        
970
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
971
    }
972
    
973
    if ( $address_row ) {
974
        $output .= '<div class="address">' . $address_row . '</div>';
@@ 1815-1823 (lines=9) @@
1812
        $address_fields[] = wpinv_country_name( $billing_country );
1813
    }
1814
    
1815
    if ( !empty( $address_fields ) ) {
1816
        $address_fields = implode( ", ", $address_fields );
1817
        
1818
        if ( !empty( $billing_details['zip'] ) ) {
1819
            $address_fields .= ' ' . $billing_details['zip'];
1820
        }
1821
        
1822
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
1823
    }
1824
    ob_start();
1825
    ?>
1826
    <table class="table table-bordered table-sm wpi-billing-details">