Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 3 | 0.970 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 232 | libraries/joomla/application/component/controller.php |
2 | 14 | 63 | libraries/joomla/application/component/model.php |
| ||||
//set the view name if (empty($this->_name)) { if (array_key_exists('name', $config)) { $this->_name = $config['name']; } else { $this->_name = $this->getName(); } } // Set a base path for use by the controller if (array_key_exists('base_path', $config)) { $this->_basePath = $config['base_path']; } else { $this->_basePath = JPATH_COMPONENT; } |
| ||||
//set the view name if (empty($this->_name)) { if (array_key_exists('name', $config)) { $this->_name = $config['name']; } else { $this->_name = $this->getName(); } } //set the model state if (array_key_exists('state', $config)) { $this->_state = $config['state']; } else { $this->_state = new JObject(); } |
| |||
//set the view name if (empty($this->_name)) { if (array_key_exists('name',$config)) { $this->_name =$config['name']; } else { $this->_name =$this->getName(); } } //set the model state // Set a base path for use by the controller if (array_key_exists( [[#variable237f44e0]],$config)) { $this-> [[#variable237f44a0]]=$config[ [[#variable237f44e0]]]; } else { $this-> [[#variable237f44a0]]= [[#variable237f4440]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#237f44e0]] | 'state' |
1 | 2 | [[#237f44e0]] | 'base_path' |
2 | 1 | [[#237f44a0]] | _state |
2 | 2 | [[#237f44a0]] | _basePath |
3 | 1 | [[#237f4440]] | new JObject() |
3 | 2 | [[#237f4440]] | JPATH_COMPONENT |