Code Duplication    Length = 4-4 lines in 2 locations

includes/payments/functions.php 2 locations

@@ 889-892 (lines=4) @@
886
		'email'      => give_get_meta( $payment_id, '_give_donor_billing_donor_email', true ),
887
	);
888
889
	if ( empty( $donor_info['first_name'] ) ) {
890
		$donor_id                 = give_get_payment_donor_id( $payment_id );
891
		$donor_info['first_name'] = Give()->donor_meta->get_meta( $donor_id, '_give_donor_first_name', true );
892
	}
893
894
	if ( empty( $donor_info['last_name'] ) ) {
895
		$donor_id                = $donor_id ? $donor_id : give_get_payment_donor_id( $payment_id );
@@ 894-897 (lines=4) @@
891
		$donor_info['first_name'] = Give()->donor_meta->get_meta( $donor_id, '_give_donor_first_name', true );
892
	}
893
894
	if ( empty( $donor_info['last_name'] ) ) {
895
		$donor_id                = $donor_id ? $donor_id : give_get_payment_donor_id( $payment_id );
896
		$donor_info['last_name'] = Give()->donor_meta->get_meta( $donor_id, '_give_donor_last_name', true );
897
	}
898
899
	if ( empty( $donor_info['email'] ) ) {
900
		$donor_id            = $donor_id ? $donor_id : give_get_payment_donor_id( $payment_id );