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>';
@@ 1890-1898 (lines=9) @@
1887
        $address_fields[] = wpinv_country_name( $billing_country );
1888
    }
1889
1890
    if ( !empty( $address_fields ) ) {
1891
        $address_fields = implode( ", ", $address_fields );
1892
1893
        if ( !empty( $billing_details['zip'] ) ) {
1894
            $address_fields .= ' ' . $billing_details['zip'];
1895
        }
1896
1897
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
1898
    }
1899
    ob_start();
1900
    ?>
1901
    <table class="table table-bordered table-sm wpi-billing-details">