Code Duplication    Length = 3-4 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 1993-1995 (lines=3) @@
1990
        ) {
1991
            $ids_for_removal = $columns_and_ids_for_deleting[$this->get_primary_key_field()->get_qualified_column()];
1992
            foreach ($ids_for_removal as $id) {
1993
                if (isset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id])) {
1994
                    unset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id]);
1995
                }
1996
            }
1997
1998
            // delete any extra meta attached to the deleted entities but ONLY if this model is not an instance of
@@ 5104-5107 (lines=4) @@
5101
            $this->_entity_map[EEM_Base::$_model_query_blog_id] = array();
5102
            return true;
5103
        }
5104
        if (isset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id])) {
5105
            unset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id]);
5106
            return true;
5107
        }
5108
        return false;
5109
    }
5110