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>';
@@ 1812-1820 (lines=9) @@
1809
        $address_fields[] = wpinv_country_name( $billing_country );
1810
    }
1811
1812
    if ( !empty( $address_fields ) ) {
1813
        $address_fields = implode( ", ", $address_fields );
1814
1815
        if ( !empty( $billing_details['zip'] ) ) {
1816
            $address_fields .= ' ' . $billing_details['zip'];
1817
        }
1818
1819
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
1820
    }
1821
    ob_start();
1822
    ?>
1823
    <table class="table table-bordered table-sm wpi-billing-details">