CloneSet305


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15340.974statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11592
administrator/components/com_content/controllers/articles.php
215126
administrator/components/com_content/controllers/articles.php
31433
administrator/components/com_content/controllers/featured.php
Clone Instance
1
Line Count
15
Source Line
92
Source File
administrator/components/com_content/controllers/articles.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');


Clone Instance
2
Line Count
15
Source Line
126
Source File
administrator/components/com_content/controllers/articles.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->featured($ids, $value)) {
                                JError::raiseWarning(500, $model->getError());
                              }
                      }

                $this->setRedirect('index.php?option=com_content&view=articles');


Clone Instance
3
Line Count
14
Source Line
33
Source File
administrator/components/com_content/controllers/featured.php

                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');


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4b42b120]]
'Select an item to publish' 
12[[#4b42b120]]
'Select an item to publish' 
13[[#4b42b120]]
'Select an item to delete' 
21[[#4b42afc0]]
featured 
22[[#4b42afc0]]
publish 
23[[#4b42afc0]]
featured 
31[[#4b42b080]]
$value 
32[[#4b42b080]]
$value 
33[[#4b42b080]]
0 
41[[#4b42b060]]
'index.php?option=com_content&view=articles' 
42[[#4b42b060]]
'index.php?option=com_content&view=articles' 
43[[#4b42b060]]
'index.php?option=com_content&view=featured'