Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 1 | 0.997 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 65 | administrator/components/com_categories/controllers/categories.php |
2 | 18 | 65 | administrator/components/com_menus/controllers/items.php |
| ||||
if (empty($pks)) { JError::raiseWarning(500, JText::_('JError_No_items_selected')); } else { // Get the model. $model= $this->getModel(); // Remove the items. if ($model->delete($pks)) { $this->setMessage(JText::sprintf('JSuccess_N_items_deleted', $n)); } else { $this->setMessage($model->getError()); } } $this->setRedirect('index.php?option=com_categories&view=categories'); |
| ||||
if (empty($pks)) { JError::raiseWarning(500, JText::_('JError_No_items_selected')); } else { // Get the model. $model= $this->getModel(); // Remove the items. if ($model->delete($pks)) { $this->setMessage(JText::sprintf('JSuccess_N_items_deleted', $n)); } else { $this->setMessage($model->getError()); } } $this->setRedirect('index.php?option=com_menus&view=items'); |
| |||
if (empty($pks)) { JError::raiseWarning(500,JText::_('JError_No_items_selected')); } else { // Get the model. $model=$this->getModel(); // Remove the items. if ($model->delete($pks)) { $this->setMessage(JText::sprintf('JSuccess_N_items_deleted',$n)); } else { $this->setMessage($model->getError()); } } $this->setRedirect( [[#variable525e6c60]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#525e6c60]] | 'index.php?option=com_menus&view=items' |
1 | 2 | [[#525e6c60]] | 'index.php?option=com_categories&view=categories' |