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
@@ 5106-5109 (lines=4) @@
5103
            $this->_entity_map[EEM_Base::$_model_query_blog_id] = array();
5104
            return true;
5105
        }
5106
        if (isset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id])) {
5107
            unset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id]);
5108
            return true;
5109
        }
5110
        return false;
5111
    }
5112