Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 3 | 0.963 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 128 | libraries/joomla/installer/installer.php |
2 | 9 | 159 | libraries/joomla/installer/installer.php |
| ||||
/** * Set the allow overwrite switch * * @access public * @param boolean $state Overwrite switch state * @return boolean Previous value * @since 1.5 */ public function setOverwrite($state=FALSE) { $tmp= $this->_overwrite; if ($state) { $this->_overwrite = TRUE; } else { $this->_overwrite = FALSE; } return $tmp; } |
| ||||
/** * Set the allow overwrite switch * * @access public * @param boolean $state Overwrite switch state * @return boolean Previous value * @since 1.5 */ function setUpgrade($state=FALSE) { $tmp= $this->_upgrade; if ($state) { $this->_upgrade = TRUE; } else { $this->_upgrade = FALSE; } return $tmp; } |
| |||
[[#variable23e7eea0]] /** * Set the allow overwrite switch * * @access public * @param boolean $state Overwrite switch state * @return boolean Previous value * @since 1.5 */ function [[#variable23e7ee00]]($state=FALSE) { $tmp=$this-> [[#variable23e7ed20]]; if ($state) { $this-> [[#variable23e7ed20]]=TRUE; } else { $this-> [[#variable23e7ed20]]=FALSE; } return $tmp; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#23e7eea0]] | /** * Set the allow overwrite switch * * @access public * @param boolean $state Overwrite switch state * @return boolean Previous value * @since 1.5 */ public |
1 | 2 | [[#23e7eea0]] | |
2 | 1 | [[#23e7ee00]] | setOverwrite |
2 | 2 | [[#23e7ee00]] | setUpgrade |
3 | 1 | [[#23e7ed20]] | _overwrite |
3 | 2 | [[#23e7ed20]] | _upgrade |