Code Duplication    Length = 2-3 lines in 2 locations

core/libraries/plugin_api/db/EEE_Base_Class.lib.php 1 location

@@ 54-56 (lines=3) @@
51
		if( ! $this->_model_name_extended){
52
			throw new EE_Error(sprintf(__("When declaring a class extension, you must define its _model_name_extended property. It should be a model name like 'Attendee' or 'Event'", "event_espresso")));
53
		}
54
		if(did_action('AHEE__EE_'.$this->_model_name_extended.'__construct__end')){
55
			throw new EE_Error(sprintf(__("Hooked in model object extension '%s' too late! The model object %s has already been used!", "event_espresso"),get_class($this),$this->_model_name_extended));
56
		}
57
		$this->_register_extending_methods();
58
	}
59

core/admin/EE_Admin_Page.core.php 1 location

@@ 1836-1837 (lines=2) @@
1833
	 */
1834
	protected function _set_list_table_object() {
1835
		if ( isset($this->_route_config['list_table'] ) ) {
1836
			if ( !class_exists( $this->_route_config['list_table'] ) )
1837
				throw new EE_Error( sprintf( __('The %s class defined for the list table does not exist.  Please check the spelling of the class ref in the $_page_config property on %s.', 'event_espresso'), $this->_route_config['list_table'], get_class($this) ) );
1838
			$a = new ReflectionClass($this->_route_config['list_table']);
1839
			$this->_list_table_object = $a->newInstance($this);
1840
		}