| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 9 | 2 | 1 | 0.998 | if_statement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 9 | 230 | libraries/joomla/installer/adapters/module.php |
| 2 | 9 | 198 | libraries/joomla/installer/adapters/plugin.php |
| ||||
// If there is a manifest script, lets copy it.
if ($this->get('manifest_script')) {
$path['src']= $this->parent->getPath('source')
. DS
. $this->get('manifest_script');
$path['dest']= $this->parent->getPath('extension_root')
. DS
. $this->get('manifest_script');
if (!file_exists($path['dest'])) {
if (!$this->parent->copyFiles(array( $path))) {
// Install failed, rollback changes
$this->parent->abort(JText::_('Module')
. ' '
. JText::_($this->route)
. ': '
. JText::_('Could not copy PHP manifest file.'));
return FALSE;
}
}
}
|
| ||||
// If there is a manifest script, lets copy it.
if ($this->get('manifest_script')) {
$path['src']= $this->parent->getPath('source')
. DS
. $this->get('manifest_script');
$path['dest']= $this->parent->getPath('extension_root')
. DS
. $this->get('manifest_script');
if (!file_exists($path['dest'])) {
if (!$this->parent->copyFiles(array( $path))) {
// Install failed, rollback changes
$this->parent->abort(JText::_('Plugin')
. ' '
. JText::_($this->route)
. ': '
. JText::_('Could not copy PHP manifest file.'));
return FALSE;
}
}
}
|
| |||
// If there is a manifest script, lets copy it.
if ($this->get('manifest_script')) {
$path['src']=$this->parent->getPath('source')
. DS
. $this->get('manifest_script');
$path['dest']=$this->parent->getPath('extension_root')
. DS
. $this->get('manifest_script');
if (!file_exists($path['dest'])) {
if (!$this->parent->copyFiles(array($path))) {
// Install failed, rollback changes
$this->parent->abort(JText::_( [[#variable44c02640]])
. ' '
. JText::_($this->route)
. ': '
. JText::_('Could not copy PHP manifest file.'));
return FALSE;
}
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#44c02640]] | 'Module' |
| 1 | 2 | [[#44c02640]] | 'Plugin' |