Code Duplication    Length = 9-9 lines in 2 locations

includes/wpinv-template-functions.php 2 locations

@@ 990-998 (lines=9) @@
987
        $address_fields[] = wpinv_country_name( $billing_country );
988
    }
989
    
990
    if ( !empty( $address_fields ) ) {
991
        $address_fields = implode( ", ", $address_fields );
992
        
993
        if ( !empty( $billing_details['zip'] ) ) {
994
            $address_fields .= ' ' . $billing_details['zip'];
995
        }
996
        
997
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
998
    }
999
    
1000
    if ( $address_row ) {
1001
        $output .= '<div class="address">' . $address_row . '</div>';
@@ 1850-1858 (lines=9) @@
1847
        $address_fields[] = wpinv_country_name( $billing_country );
1848
    }
1849
    
1850
    if ( !empty( $address_fields ) ) {
1851
        $address_fields = implode( ", ", $address_fields );
1852
        
1853
        if ( !empty( $billing_details['zip'] ) ) {
1854
            $address_fields .= ' ' . $billing_details['zip'];
1855
        }
1856
        
1857
        $address_row .= wpautop( wp_kses_post( $address_fields ) );
1858
    }
1859
    ob_start();
1860
    ?>
1861
    <table class="table table-bordered table-sm wpi-billing-details">