Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 2074-2081 (lines=8) @@
2071
			}
2072
2073
			// If Donor is connected with WP User then update user meta.
2074
			if ( $donor->user_id ) {
2075
				if ( isset( $donor_name[0] ) ) {
2076
					update_user_meta( $donor->user_id, 'first_name', $donor_name[0] );
2077
				}
2078
				if ( isset( $donor_name[1] ) ) {
2079
					update_user_meta( $donor->user_id, 'last_name', $donor_name[1] );
2080
				}
2081
			}
2082
		}
2083
2084
	} else {
@@ 2590-2597 (lines=8) @@
2587
				}
2588
2589
				// If Donor is connected with WP User then update user meta.
2590
				if ( $donor->user_id ) {
2591
					if ( isset( $donor_name[0] ) ) {
2592
						update_user_meta( $donor->user_id, 'first_name', $donor_name[0] );
2593
					}
2594
					if ( isset( $donor_name[1] ) ) {
2595
						update_user_meta( $donor->user_id, 'last_name', $donor_name[1] );
2596
					}
2597
				}
2598
			}
2599
2600
			Give()->donors->table_name     = $donor_table_name;