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.988 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 135 | administrator/components/com_installer/models/discover.php |
2 | 9 | 80 | administrator/components/com_installer/models/update.php |
| ||||
function purge() { $db= & JFactory::getDBO(); $db->setQuery('DELETE FROM #__extensions WHERE state = -1'); if ($db->Query()) { $this->_message = JText::_('Purged discovered extensions'); return TRUE; } else { $this->_message = JText::_('Failed to purge extensions'); return FALSE; } } |
| ||||
function purge() { $db= & JFactory::getDBO(); $db->setQuery('TRUNCATE TABLE #__updates'); if ($db->Query()) { $this->_message = JText::_('Purged updates'); return TRUE; } else { $this->_message = JText::_('Failed to purge updates'); return FALSE; } } |
| |||
function purge() { $db= &JFactory::getDBO(); $db->setQuery( [[#variable20bf9140]]); if ($db->Query()) { $this->_message =JText::_( [[#variable20bf9060]]); return TRUE; } else { $this->_message =JText::_( [[#variable20bf9080]]); return FALSE; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#20bf9140]] | 'DELETE FROM #__extensions WHERE state = -1' |
1 | 2 | [[#20bf9140]] | 'TRUNCATE TABLE #__updates' |
2 | 1 | [[#20bf9060]] | 'Purged discovered extensions' |
2 | 2 | [[#20bf9060]] | 'Purged updates' |
3 | 1 | [[#20bf9080]] | 'Failed to purge extensions' |
3 | 2 | [[#20bf9080]] | 'Failed to purge updates' |