CloneSet659


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7250.977statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1739
administrator/components/com_categories/models/fields/categoryparent.php
2739
administrator/components/com_menus/models/fields/menuparent.php
Clone Instance
1
Line Count
7
Source Line
39
Source File
administrator/components/com_categories/models/fields/categoryparent.php

                $query->select('a.id AS value, a.title AS text, a.level');
                $query->from('#__categories AS a');
                $query->join('LEFT', '`#__categories` AS b ON a.lft > b.lft AND a.rgt < b.rgt');

                // Filter by the type
                if ($extension=  $this->_form->getValue('extension')) {
                        $query->where('(a.extension = '
                                      .                 $db->quote($extension)
                                      .                                        ' OR a.parent_id = 0)');
                      }


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

                $query->select('a.id AS value, a.title AS text, a.level');
                $query->from('#__menu AS a');
                $query->join('LEFT', '`#__menu` AS b ON a.lft > b.lft AND a.rgt < b.rgt');

                // Filter by the type
                if ($menuType=  $this->_form->getValue('menutype')) {
                        $query->where('(a.menutype = '
                                      .                $db->quote($menuType)
                                      .                                      ' OR a.parent_id = 0)');
                      }


Clone AbstractionParameter Count: 5Parameter Bindings

$query->select('a.id AS value, a.title AS text, a.level');
$query->from( [[#variable3c8f5ee0]]);
$query->join('LEFT', [[#variable3c8f5e80]]);
// Filter by the type
if ( [[#variable3c8f5e40]]=$this->_form->getValue( [[#variable3c8f5d80]])) {
  $query->where( [[#variable3c8f56a0]]
                . $db->quote( [[#variable3c8f5e40]])
                . ' OR a.parent_id = 0)');
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3c8f5ee0]]
'#__menu AS a' 
12[[#3c8f5ee0]]
'#__categories AS a' 
21[[#3c8f5e80]]
'`#__menu` AS b ON a.lft > b.lft AND a.rgt < b.rgt' 
22[[#3c8f5e80]]
'`#__categories` AS b ON a.lft > b.lft AND a.rgt < b.rgt' 
31[[#3c8f5e40]]
$menuType 
32[[#3c8f5e40]]
$extension 
41[[#3c8f5d80]]
'menutype' 
42[[#3c8f5d80]]
'extension' 
51[[#3c8f56a0]]
'(a.menutype = ' 
52[[#3c8f56a0]]
'(a.extension = '