Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 2099-2106 (lines=8) @@
2096
			}
2097
2098
			// If Donor is connected with WP User then update user meta.
2099
			if ( $donor->user_id ) {
2100
				if ( isset( $donor_name[0] ) ) {
2101
					update_user_meta( $donor->user_id, 'first_name', $donor_name[0] );
2102
				}
2103
				if ( isset( $donor_name[1] ) ) {
2104
					update_user_meta( $donor->user_id, 'last_name', $donor_name[1] );
2105
				}
2106
			}
2107
		}
2108
2109
	} else {
@@ 2615-2622 (lines=8) @@
2612
				}
2613
2614
				// If Donor is connected with WP User then update user meta.
2615
				if ( $donor->user_id ) {
2616
					if ( isset( $donor_name[0] ) ) {
2617
						update_user_meta( $donor->user_id, 'first_name', $donor_name[0] );
2618
					}
2619
					if ( isset( $donor_name[1] ) ) {
2620
						update_user_meta( $donor->user_id, 'last_name', $donor_name[1] );
2621
					}
2622
				}
2623
			}
2624
2625
			Give()->donors->table_name     = $donor_table_name;