Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 5 | 3 | 0.973 | if_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 335 | administrator/components/com_banners/controllers/banner.php |
2 | 2 | 399 | administrator/components/com_banners/controllers/banner.php |
3 | 2 | 54 | components/com_weblinks/controllers/weblink.php |
4 | 2 | 73 | components/com_weblinks/controllers/weblink.php |
5 | 2 | 49 | components/com_weblinks/views/category/view.html.php |
| ||||
if (empty($cid)) { return JError::raiseWarning(500, JText::_('No items selected')); } |
| ||||
if (empty($cid)) { return JError::raiseWarning(500, JText::_('No items selected')); } |
| ||||
// Make sure the item was found. if (empty($link)) { return JError::raiseWarning(404, JText::_('Weblinks_Error_Weblink_not_found')); } |
| ||||
// Make sure the category was found. if (empty($category)) { return JError::raiseWarning(404, JText::_('Weblinks_Error_Weblink_not_found')); } |
| ||||
// Validate the category. // Make sure the category was found. if (empty($category)) { return JError::raiseWarning(404, JText::_('Weblinks_Error_Category_not_found')); } |
| |||
// Validate the category. // Make sure the category was found. // Make sure the item was found. if (empty( [[#variable4ab663c0]])) { return JError::raiseWarning( [[#variable46ffacc0]],JText::_( [[#variable4ab66400]])); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4ab663c0]] | $cid |
1 | 2 | [[#4ab663c0]] | $category |
1 | 3 | [[#4ab663c0]] | $link |
1 | 4 | [[#4ab663c0]] | $category |
1 | 5 | [[#4ab663c0]] | $cid |
2 | 1 | [[#46ffacc0]] | 500 |
2 | 2 | [[#46ffacc0]] | 404 |
2 | 3 | [[#46ffacc0]] | 404 |
2 | 4 | [[#46ffacc0]] | 404 |
2 | 5 | [[#46ffacc0]] | 500 |
3 | 1 | [[#4ab66400]] | 'No items selected' |
3 | 2 | [[#4ab66400]] | 'Weblinks_Error_Weblink_not_found' |
3 | 3 | [[#4ab66400]] | 'Weblinks_Error_Weblink_not_found' |
3 | 4 | [[#4ab66400]] | 'Weblinks_Error_Category_not_found' |
3 | 5 | [[#4ab66400]] | 'No items selected' |