Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 3 | 2 | 0.994 | function_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 434 | libraries/joomla/application/application.php |
2 | 14 | 483 | libraries/joomla/application/component/controller.php |
3 | 14 | 212 | libraries/joomla/application/component/model.php |
| ||||
/** * Method to get the application name * * The dispatcher name by default parsed using the classname, or it can be set * by passing a $config['name'] in the class constructor * * @access public * @return string The name of the dispatcher * @since 1.5 */ function getName() { $name= $this->_name; if (empty($name)) { $r= NULL; if (!preg_match('/J(.*)/i', get_class($this), $r)) { JError::raiseError(500, "JApplication::getName() : Can\\'t get or parse class name."); } $name= strtolower($r[1]); } return $name; } |
| ||||
/** * Method to get the controller name * * The dispatcher name by default parsed using the classname, or it can be set * by passing a $config['name'] in the class constructor * * @access public * @return string The name of the dispatcher * @since 1.5 */ function getName() { $name= $this->_name; if (empty($name)) { $r= NULL; if (!preg_match('/(.*)Controller/i', get_class($this), $r)) { JError::raiseError(500, "JController::getName() : Cannot get or parse class name."); } $name= strtolower($r[1]); } return $name; } |
| ||||
function getName() { $name= $this->_name; if (empty($name)) { $r= NULL; if (!preg_match('/Model(.*)/i', get_class($this), $r)) { JError::raiseError( 500, "JModel::getName() : Can't get or parse class name."); } $name= strtolower($r[1]); } return $name; } |
| |||
/** * Method to get the application name * * The dispatcher name by default parsed using the classname, or it can be set * by passing a $config['name'] in the class constructor * * @access public * @return string The name of the dispatcher * @since 1.5 */ /** * Method to get the controller name * * The dispatcher name by default parsed using the classname, or it can be set * by passing a $config['name'] in the class constructor * * @access public * @return string The name of the dispatcher * @since 1.5 */ function getName() { $name=$this->_name; if (empty($name)) { $r=NULL; if (!preg_match( [[#variable4e46ed00]],get_class($this),$r)) { JError::raiseError(500, [[#variable4e46ed80]]); } $name=strtolower($r[1]); } return $name; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4e46ed00]] | '/J(.*)/i' |
1 | 2 | [[#4e46ed00]] | '/(.*)Controller/i' |
1 | 3 | [[#4e46ed00]] | '/Model(.*)/i' |
2 | 1 | [[#4e46ed80]] | "JApplication::getName() : Can\\'t get or parse class name." |
2 | 2 | [[#4e46ed80]] | "JController::getName() : Cannot get or parse class name." |
2 | 3 | [[#4e46ed80]] | "JModel::getName() : Can't get or parse class name." |