Code Duplication    Length = 8-8 lines in 2 locations

includes/admin/upgrades/upgrade-functions.php 2 locations

@@ 2034-2041 (lines=8) @@
2031
			}
2032
2033
			// If Donor is connected with WP User then update user meta.
2034
			if ( $donor->user_id ) {
2035
				if ( isset( $donor_name[0] ) ) {
2036
					update_user_meta( $donor->user_id, 'first_name', $donor_name[0] );
2037
				}
2038
				if ( isset( $donor_name[1] ) ) {
2039
					update_user_meta( $donor->user_id, 'last_name', $donor_name[1] );
2040
				}
2041
			}
2042
		}
2043
2044
	} else {
@@ 2545-2552 (lines=8) @@
2542
				}
2543
2544
				// If Donor is connected with WP User then update user meta.
2545
				if ( $donor->user_id ) {
2546
					if ( isset( $donor_name[0] ) ) {
2547
						update_user_meta( $donor->user_id, 'first_name', $donor_name[0] );
2548
					}
2549
					if ( isset( $donor_name[1] ) ) {
2550
						update_user_meta( $donor->user_id, 'last_name', $donor_name[1] );
2551
					}
2552
				}
2553
			}
2554
2555
			Give()->donors->table_name = $donor_table_name;