Code Duplication    Length = 3-4 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 2022-2024 (lines=3) @@
2019
        ) {
2020
            $ids_for_removal = $columns_and_ids_for_deleting[$this->get_primary_key_field()->get_qualified_column()];
2021
            foreach ($ids_for_removal as $id) {
2022
                if (isset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id])) {
2023
                    unset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id]);
2024
                }
2025
            }
2026
2027
            // delete any extra meta attached to the deleted entities but ONLY if this model is not an instance of
@@ 5142-5145 (lines=4) @@
5139
            $this->_entity_map[EEM_Base::$_model_query_blog_id] = array();
5140
            return true;
5141
        }
5142
        if (isset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id])) {
5143
            unset($this->_entity_map[EEM_Base::$_model_query_blog_id][$id]);
5144
            return true;
5145
        }
5146
        return false;
5147
    }
5148