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