Code Duplication    Length = 3-4 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 1684-1686 (lines=3) @@
1681
		if( $this->has_primary_key_field() ){
1682
			foreach($items_for_deletion as $item_for_deletion_row ){
1683
				$pk_value = $item_for_deletion_row[ $this->get_primary_key_field()->get_qualified_column() ];
1684
				if( isset( $this->_entity_map[ EEM_Base::$_model_query_blog_id ][ $pk_value ] ) ){
1685
					unset( $this->_entity_map[ EEM_Base::$_model_query_blog_id ][ $pk_value ] );
1686
				}
1687
			}
1688
		}
1689
@@ 4237-4240 (lines=4) @@
4234
			$this->_entity_map[ EEM_Base::$_model_query_blog_id ] = array();
4235
			return true;
4236
		}
4237
		if ( isset( $this->_entity_map[ EEM_Base::$_model_query_blog_id ][ $id ] ) ) {
4238
			unset( $this->_entity_map[ EEM_Base::$_model_query_blog_id ][ $id ] );
4239
			return true;
4240
		}
4241
		return false;
4242
	}
4243