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>';
@@ 1851-1859 (lines=9) @@
1848
        $address_fields[] = wpinv_country_name( $billing_country );
1849
    }
1850
    
1851
    if ( !empty( $address_fields ) ) {
1852
        $address_fields = implode( ", ", $address_fields );
1853
        
1854
        if ( !empty( $billing_details['zip'] ) ) {
1855
            $address_fields .= ' ' . $billing_details['zip'];
1856
        }
1857
        
1858
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
1859
    }
1860
    ob_start();
1861
    ?>
1862
    <table class="table table-bordered table-sm wpi-billing-details">