Code Duplication    Length = 3-4 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 2000-2002 (lines=3) @@
1997
        ) {
1998
            $ids_for_removal = $columns_and_ids_for_deleting[$this->get_primary_key_field()->get_qualified_column()];
1999
            foreach ($ids_for_removal as $id) {
2000
                if (isset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id])) {
2001
                    unset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id]);
2002
                }
2003
            }
2004
2005
            // delete any extra meta attached to the deleted entities but ONLY if this model is not an instance of
@@ 5118-5121 (lines=4) @@
5115
            $this->_entity_map[EEM_Base::$_model_query_blog_id] = array();
5116
            return true;
5117
        }
5118
        if (isset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id])) {
5119
            unset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id]);
5120
            return true;
5121
        }
5122
        return false;
5123
    }
5124