Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 4 | 0.968 | if_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 49 | administrator/components/com_categories/models/fields/categoryparent.php |
2 | 3 | 49 | administrator/components/com_menus/models/fields/menuparent.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)'); } |
| ||||
// 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)'); } |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2328b180]] | $id |
1 | 2 | [[#2328b180]] | $parentId |
2 | 1 | [[#2328b000]] | 'id' |
2 | 2 | [[#2328b000]] | 'parent_id' |
3 | 1 | [[#2328b0a0]] | '`#__categories` AS p ON p.id = ' |
3 | 2 | [[#2328b0a0]] | '`#__menu` AS p ON p.id = ' |
4 | 1 | [[#2328b080]] | 'NOT(a.lft >= p.lft AND a.rgt <= p.rgt)' |
4 | 2 | [[#2328b080]] | '(a.lft <= p.lft OR a.rgt >= p.rgt)' |