Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 3 | 4 | 0.974 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 92 | administrator/components/com_content/controllers/articles.php |
2 | 15 | 126 | administrator/components/com_content/controllers/articles.php |
3 | 14 | 33 | administrator/components/com_content/controllers/featured.php |
| ||||
if (empty($ids)) { JError::raiseWarning(500, JText::_('Select an item to publish')); } else { // Get the model. $model= $this->getModel(); // Publish the items. if (!$model->publish($ids, $value)) { JError::raiseWarning(500, $model->getError()); } } $this->setRedirect('index.php?option=com_content&view=articles'); |
| ||||
if (empty($ids)) { JError::raiseWarning(500, JText::_('Select an item to publish')); } else { // Get the model. $model= $this->getModel(); // Publish the items. if (!$model->featured($ids, $value)) { JError::raiseWarning(500, $model->getError()); } } $this->setRedirect('index.php?option=com_content&view=articles'); |
| ||||
if (empty($ids)) { JError::raiseWarning(500, JText::_('Select an item to delete')); } else { // Get the model. $model= $this->getModel(); // Remove the items. if (!$model->featured($ids, 0)) { JError::raiseWarning(500, $model->getError()); } } $this->setRedirect('index.php?option=com_content&view=featured'); |
| |||
if (empty($ids)) { JError::raiseWarning(500,JText::_( [[#variable4b42b120]])); } else { // Get the model. $model=$this->getModel(); // Publish the items. // Remove the items. if (!$model-> [[#variable4b42afc0]]($ids, [[#variable4b42b080]])) { JError::raiseWarning(500,$model->getError()); } } $this->setRedirect( [[#variable4b42b060]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4b42b120]] | 'Select an item to publish' |
1 | 2 | [[#4b42b120]] | 'Select an item to publish' |
1 | 3 | [[#4b42b120]] | 'Select an item to delete' |
2 | 1 | [[#4b42afc0]] | featured |
2 | 2 | [[#4b42afc0]] | publish |
2 | 3 | [[#4b42afc0]] | featured |
3 | 1 | [[#4b42b080]] | $value |
3 | 2 | [[#4b42b080]] | $value |
3 | 3 | [[#4b42b080]] | 0 |
4 | 1 | [[#4b42b060]] | 'index.php?option=com_content&view=articles' |
4 | 2 | [[#4b42b060]] | 'index.php?option=com_content&view=articles' |
4 | 3 | [[#4b42b060]] | 'index.php?option=com_content&view=featured' |