Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 2108-2115 (lines=8) @@
2105
			}
2106
2107
			// If Donor is connected with WP User then update user meta.
2108
			if ( $donor->user_id ) {
2109
				if ( isset( $donor_name[0] ) ) {
2110
					update_user_meta( $donor->user_id, 'first_name', $donor_name[0] );
2111
				}
2112
				if ( isset( $donor_name[1] ) ) {
2113
					update_user_meta( $donor->user_id, 'last_name', $donor_name[1] );
2114
				}
2115
			}
2116
		}
2117
2118
	} else {
@@ 2624-2631 (lines=8) @@
2621
				}
2622
2623
				// If Donor is connected with WP User then update user meta.
2624
				if ( $donor->user_id ) {
2625
					if ( isset( $donor_name[0] ) ) {
2626
						update_user_meta( $donor->user_id, 'first_name', $donor_name[0] );
2627
					}
2628
					if ( isset( $donor_name[1] ) ) {
2629
						update_user_meta( $donor->user_id, 'last_name', $donor_name[1] );
2630
					}
2631
				}
2632
			}
2633
2634
			Give()->donors->table_name     = $donor_table_name;