Code Duplication    Length = 9-9 lines in 2 locations

includes/wpinv-template-functions.php 2 locations

@@ 995-1003 (lines=9) @@
992
        $address_fields[] = wpinv_country_name( $billing_country );
993
    }
994
    
995
    if ( !empty( $address_fields ) ) {
996
        $address_fields = implode( ", ", $address_fields );
997
        
998
        if ( !empty( $billing_details['zip'] ) ) {
999
            $address_fields .= ' ' . $billing_details['zip'];
1000
        }
1001
        
1002
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
1003
    }
1004
    
1005
    if ( $address_row ) {
1006
        $output .= '<div class="address">' . $address_row . '</div>';
@@ 1854-1862 (lines=9) @@
1851
        $address_fields[] = wpinv_country_name( $billing_country );
1852
    }
1853
    
1854
    if ( !empty( $address_fields ) ) {
1855
        $address_fields = implode( ", ", $address_fields );
1856
        
1857
        if ( !empty( $billing_details['zip'] ) ) {
1858
            $address_fields .= ' ' . $billing_details['zip'];
1859
        }
1860
        
1861
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
1862
    }
1863
    ob_start();
1864
    ?>
1865
    <table class="table table-bordered table-sm wpi-billing-details">