CloneSet1152


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3240.968if_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1349
administrator/components/com_categories/models/fields/categoryparent.php
2349
administrator/components/com_menus/models/fields/menuparent.php
Clone Instance
1
Line Count
3
Source Line
49
Source File
administrator/components/com_categories/models/fields/categoryparent.php

                // Prevent parenting to children of this item.
                if ($id=  $this->_form->getValue('id')) {
                        $query->join('LEFT', '`#__categories` AS p ON p.id = '
                                             .                                 (int) $id);
                        $query->where('NOT(a.lft >= p.lft AND a.rgt <= p.rgt)');
                      }


Clone Instance
2
Line Count
3
Source Line
49
Source File
administrator/components/com_menus/models/fields/menuparent.php

                // Prevent parenting to of this item.
                if ($parentId=  $this->_form->getValue('parent_id')) {
                        $query->join('LEFT', '`#__menu` AS p ON p.id = '
                                             .                           (int) $parentId);
                        $query->where('(a.lft <= p.lft OR a.rgt >= p.rgt)');
                      }


Clone AbstractionParameter Count: 4Parameter Bindings

// Prevent parenting to children of this item.
// Prevent parenting to of this item.
if ( [[#variable2328b180]]=$this->_form->getValue( [[#variable2328b000]])) {
  $query->join('LEFT', [[#variable2328b0a0]]
                      . (int) [[#variable2328b180]]);
  $query->where( [[#variable2328b080]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2328b180]]
$id 
12[[#2328b180]]
$parentId 
21[[#2328b000]]
'id' 
22[[#2328b000]]
'parent_id' 
31[[#2328b0a0]]
'`#__categories` AS p ON p.id = ' 
32[[#2328b0a0]]
'`#__menu` AS p ON p.id = ' 
41[[#2328b080]]
'NOT(a.lft >= p.lft AND a.rgt <= p.rgt)' 
42[[#2328b080]]
'(a.lft <= p.lft OR a.rgt >= p.rgt)'