Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 2187-2189 (lines=3) @@
2184
			$donor_last_name  = Give()->donor_meta->get_meta( $donor->id, '_give_donor_last_name' );
2185
2186
			// If first name meta of donor is not created, then create it.
2187
			if ( ! $donor_first_name && isset( $donor_name[0] ) ) {
2188
				Give()->donor_meta->add_meta( $donor->id, '_give_donor_first_name', $donor_name[0] );
2189
			}
2190
2191
			// If last name meta of donor is not created, then create it.
2192
			if ( ! $donor_last_name && isset( $donor_name[1] ) ) {
@@ 2713-2715 (lines=3) @@
2710
				$donor_last_name  = Give()->donor_meta->get_meta( $donor->id, '_give_donor_last_name' );
2711
2712
				// If first name meta of donor is not created, then create it.
2713
				if ( ! $donor_first_name && isset( $donor_name[0] ) ) {
2714
					Give()->donor_meta->add_meta( $donor->id, '_give_donor_first_name', $donor_name[0] );
2715
				}
2716
2717
				// If last name meta of donor is not created, then create it.
2718
				if ( ! $donor_last_name && isset( $donor_name[1] ) ) {