Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 2 | 0.992 | if_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 299 | administrator/components/com_categories/controllers/category.php |
2 | 9 | 318 | administrator/components/com_menus/controllers/item.php |
| ||||
// Attempt to run the batch operation. if ($model->batch($vars, $cid)) { $this->setMessage(JText::_('Categories_Batch_success')); return TRUE; } else { $this->setMessage(JText::_(JText::sprintf('Categories_Error_Batch_failed', $model->getError()))); return FALSE; } |
| ||||
// Attempt to run the batch operation. if ($model->batch($vars, $cid)) { $this->setMessage(JText::_('Menus_Batch_success')); return TRUE; } else { $this->setMessage(JText::_(JText::sprintf('Menus_Error_Batch_failed', $model->getError()))); return FALSE; } |
| |||
// Attempt to run the batch operation. if ($model->batch($vars,$cid)) { $this->setMessage(JText::_( [[#variable250b8f60]])); return TRUE; } else { $this->setMessage(JText::_(JText::sprintf( [[#variable250b8ec0]],$model->getError()))); return FALSE; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#250b8f60]] | 'Categories_Batch_success' |
1 | 2 | [[#250b8f60]] | 'Menus_Batch_success' |
2 | 1 | [[#250b8ec0]] | 'Categories_Error_Batch_failed' |
2 | 2 | [[#250b8ec0]] | 'Menus_Error_Batch_failed' |