Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 2117-2119 (lines=3) @@
2114
			$donor_last_name  = Give()->donor_meta->get_meta( $donor->id, '_give_donor_last_name' );
2115
2116
			// If first name meta of donor is not created, then create it.
2117
			if ( ! $donor_first_name && isset( $donor_name[0] ) ) {
2118
				Give()->donor_meta->add_meta( $donor->id, '_give_donor_first_name', $donor_name[0] );
2119
			}
2120
2121
			// If last name meta of donor is not created, then create it.
2122
			if ( ! $donor_last_name && isset( $donor_name[1] ) ) {
@@ 2630-2632 (lines=3) @@
2627
				$donor_last_name  = Give()->donor_meta->get_meta( $donor->id, '_give_donor_last_name' );
2628
2629
				// If first name meta of donor is not created, then create it.
2630
				if ( ! $donor_first_name && isset( $donor_name[0] ) ) {
2631
					Give()->donor_meta->add_meta( $donor->id, '_give_donor_first_name', $donor_name[0] );
2632
				}
2633
2634
				// If last name meta of donor is not created, then create it.
2635
				if ( ! $donor_last_name && isset( $donor_name[1] ) ) {