CloneSet468


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18210.997statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11865
administrator/components/com_categories/controllers/categories.php
21865
administrator/components/com_menus/controllers/items.php
Clone Instance
1
Line Count
18
Source Line
65
Source File
administrator/components/com_categories/controllers/categories.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');


Clone Instance
2
Line Count
18
Source Line
65
Source File
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_menus&view=items');


Clone AbstractionParameter Count: 1Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#525e6c60]]
'index.php?option=com_menus&view=items' 
12[[#525e6c60]]
'index.php?option=com_categories&view=categories'