Code Duplication    Length = 3-4 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 1962-1964 (lines=3) @@
1959
        ) {
1960
            $ids_for_removal = $columns_and_ids_for_deleting[$this->get_primary_key_field()->get_qualified_column()];
1961
            foreach ($ids_for_removal as $id) {
1962
                if (isset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id])) {
1963
                    unset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id]);
1964
                }
1965
            }
1966
1967
            // delete any extra meta attached to the deleted entities but ONLY if this model is not an instance of
@@ 5044-5047 (lines=4) @@
5041
            $this->_entity_map[EEM_Base::$_model_query_blog_id] = array();
5042
            return true;
5043
        }
5044
        if (isset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id])) {
5045
            unset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id]);
5046
            return true;
5047
        }
5048
        return false;
5049
    }
5050