Code Duplication    Length = 6-7 lines in 2 locations

includes/class-give-db-donor-meta.php 1 location

@@ 93-99 (lines=7) @@
90
		/* @var wpdb $wpdb */
91
		global $wpdb;
92
93
		if (
94
			! give_has_upgrade_completed( 'v20_rename_donor_tables' ) &&
95
			$wpdb->query( $wpdb->prepare( "SHOW TABLES LIKE %s","{$wpdb->prefix}give_customermeta" ) )
96
		) {
97
			$wpdb->donormeta = $this->table_name = "{$wpdb->prefix}give_customermeta";
98
			$this->meta_type = 'customer';
99
		}
100
101
		$wpdb->customermeta = $wpdb->donormeta;
102
	}

includes/class-give-db-donors.php 1 location

@@ 598-603 (lines=6) @@
595
		/* @var wpdb $wpdb */
596
		global $wpdb;
597
598
		if (
599
			! give_has_upgrade_completed( 'v20_rename_donor_tables' ) &&
600
			$wpdb->query( $wpdb->prepare( "SHOW TABLES LIKE %s", "{$wpdb->prefix}give_customers" ) )
601
		) {
602
			$wpdb->donors = $this->table_name = "{$wpdb->prefix}give_customers";
603
		}
604
	}
605
606
	/**