Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 5 | 3 | 0.987 | if_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 773 | libraries/joomla/installer/adapters/component.php |
2 | 3 | 217 | libraries/joomla/installer/adapters/library.php |
3 | 3 | 458 | libraries/joomla/installer/adapters/module.php |
4 | 3 | 350 | libraries/joomla/installer/adapters/plugin.php |
5 | 3 | 205 | libraries/joomla/installer/adapters/template.php |
| ||||
// Is the component we are trying to uninstall a core one? // Because that is not a good idea... if ($row->protected) { JError::raiseWarning(100, JText::_('Component') . ' ' . JText::_('Uninstall') . ': ' . JText::sprintf('WARNCORECOMPONENT', $row->name) . "<br />" . JText::_('WARNCORECOMPONENT2')); return FALSE; } |
| ||||
// Is the library we are trying to uninstall a core one? // Because that is not a good idea... if ($row->protected) { JError::raiseWarning(100, JText::_('Library') . ' ' . JText::_('Uninstall') . ': ' . JText::sprintf('WARNCOREMODULE', $row->name) . "<br />" . JText::_('WARNCOREMODULE2')); return FALSE; } |
| ||||
// Is the module we are trying to uninstall a core one? // Because that is not a good idea... if ($row->protected) { JError::raiseWarning(100, JText::_('Module') . ' ' . JText::_('Uninstall') . ': ' . JText::sprintf('WARNCOREMODULE', $row->name) . "<br />" . JText::_('WARNCOREMODULE2')); return FALSE; } |
| ||||
// Is the plugin we are trying to uninstall a core one? // Because that is not a good idea... if ($row->protected) { JError::raiseWarning(100, JText::_('Plugin') . ' ' . JText::_('Uninstall') . ': ' . JText::sprintf('WARNCOREPLUGIN', $row->name) . "<br />" . JText::_('WARNCOREPLUGIN2')); return FALSE; } |
| ||||
// Is the template we are trying to uninstall a core one? // Because that is not a good idea... if ($row->protected) { JError::raiseWarning(100, JText::_('Template') . ' ' . JText::_('Uninstall') . ': ' . JText::sprintf('WARNCOREMODULE', $row->name) . "<br />" . JText::_('WARNCOREMODULE2')); return FALSE; } |
| |||
// Is the component we are trying to uninstall a core one? // Is the library we are trying to uninstall a core one? // Is the module we are trying to uninstall a core one? // Is the plugin we are trying to uninstall a core one? // Is the template we are trying to uninstall a core one? // Because that is not a good idea... if ($row->protected) { JError::raiseWarning(100,JText::_( [[#variable22e4e200]]) . ' ' . JText::_('Uninstall') . ': ' . JText::sprintf( [[#variable22e4e120]],$row->name) . "<br />" . JText::_( [[#variable22e4e160]])); return FALSE; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#22e4e200]] | 'Component' |
1 | 2 | [[#22e4e200]] | 'Library' |
1 | 3 | [[#22e4e200]] | 'Module' |
1 | 4 | [[#22e4e200]] | 'Plugin' |
1 | 5 | [[#22e4e200]] | 'Template' |
2 | 1 | [[#22e4e120]] | 'WARNCORECOMPONENT' |
2 | 2 | [[#22e4e120]] | 'WARNCOREMODULE' |
2 | 3 | [[#22e4e120]] | 'WARNCOREMODULE' |
2 | 4 | [[#22e4e120]] | 'WARNCOREPLUGIN' |
2 | 5 | [[#22e4e120]] | 'WARNCOREMODULE' |
3 | 1 | [[#22e4e160]] | 'WARNCORECOMPONENT2' |
3 | 2 | [[#22e4e160]] | 'WARNCOREMODULE2' |
3 | 3 | [[#22e4e160]] | 'WARNCOREMODULE2' |
3 | 4 | [[#22e4e160]] | 'WARNCOREPLUGIN2' |
3 | 5 | [[#22e4e160]] | 'WARNCOREMODULE2' |