Code Duplication    Length = 4-4 lines in 3 locations

sql/upgrade/PodsUpgrade.php 1 location

@@ 47-50 (lines=4) @@
44
        global $wpdb;
45
46
        // Switch DB table prefixes
47
        if ( null !== $_blog_id && $_blog_id != $wpdb->blogid )
48
            switch_to_blog( pods_absint( $_blog_id ) );
49
        else
50
            $_blog_id = null;
51
52
        $pods_version = get_option( 'pods_version' );
53

classes/PodsInit.php 2 locations

@@ 1115-1118 (lines=4) @@
1112
		global $wpdb;
1113
1114
		// Switch DB table prefixes
1115
		if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) {
1116
			switch_to_blog( pods_absint( $_blog_id ) );
1117
		} else {
1118
			$_blog_id = null;
1119
		}
1120
1121
		// Setup DB tables
@@ 1194-1197 (lines=4) @@
1191
		global $wpdb;
1192
1193
		// Switch DB table prefixes
1194
		if ( null !== $_blog_id && $_blog_id != $wpdb->blogid ) {
1195
			switch_to_blog( pods_absint( $_blog_id ) );
1196
		} else {
1197
			$_blog_id = null;
1198
		}
1199
1200
		$api = pods_api();