Code Duplication    Length = 9-9 lines in 2 locations

includes/wpinv-template-functions.php 2 locations

@@ 957-965 (lines=9) @@
954
        $address_fields[] = wpinv_country_name( $billing_country );
955
    }
956
957
    if ( !empty( $address_fields ) ) {
958
        $address_fields = implode( ", ", $address_fields );
959
        
960
        if ( !empty( $billing_details['zip'] ) ) {
961
            $address_fields .= ' ' . $billing_details['zip'];
962
        }
963
964
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
965
    }
966
    
967
    if ( $address_row ) {
968
        $output .= '<div class="address">' . $address_row . '</div>';
@@ 1873-1881 (lines=9) @@
1870
        $address_fields[] = wpinv_country_name( $billing_country );
1871
    }
1872
1873
    if ( !empty( $address_fields ) ) {
1874
        $address_fields = implode( ", ", $address_fields );
1875
1876
        if ( !empty( $billing_details['zip'] ) ) {
1877
            $address_fields .= ' ' . $billing_details['zip'];
1878
        }
1879
1880
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
1881
    }
1882
    ob_start();
1883
    ?>
1884
    <table class="table table-bordered table-sm wpi-billing-details">