CloneSet673


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9230.988class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19135
administrator/components/com_installer/models/discover.php
2980
administrator/components/com_installer/models/update.php
Clone Instance
1
Line Count
9
Source Line
135
Source File
administrator/components/com_installer/models/discover.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;
                      }
              }


Clone Instance
2
Line Count
9
Source Line
80
Source File
administrator/components/com_installer/models/update.php

        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;
                      }
              }


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#20bf9140]]
'DELETE FROM #__extensions WHERE state = -1' 
12[[#20bf9140]]
'TRUNCATE TABLE #__updates' 
21[[#20bf9060]]
'Purged discovered extensions' 
22[[#20bf9060]]
'Purged updates' 
31[[#20bf9080]]
'Failed to purge extensions' 
32[[#20bf9080]]
'Failed to purge updates'