Code Duplication    Length = 3-4 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 2007-2009 (lines=3) @@
2004
        ) {
2005
            $ids_for_removal = $columns_and_ids_for_deleting[$this->get_primary_key_field()->get_qualified_column()];
2006
            foreach ($ids_for_removal as $id) {
2007
                if (isset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id])) {
2008
                    unset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id]);
2009
                }
2010
            }
2011
2012
            // delete any extra meta attached to the deleted entities but ONLY if this model is not an instance of
@@ 5120-5123 (lines=4) @@
5117
            $this->_entity_map[EEM_Base::$_model_query_blog_id] = array();
5118
            return true;
5119
        }
5120
        if (isset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id])) {
5121
            unset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id]);
5122
            return true;
5123
        }
5124
        return false;
5125
    }
5126