| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 2 | 5 | 0.977 | statement_sequence[4] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 39 | administrator/components/com_categories/models/fields/categoryparent.php |
| 2 | 7 | 39 | administrator/components/com_menus/models/fields/menuparent.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)');
}
|
| ||||
$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)');
}
|
| |||
$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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#3c8f5ee0]] | '#__menu AS a' |
| 1 | 2 | [[#3c8f5ee0]] | '#__categories AS a' |
| 2 | 1 | [[#3c8f5e80]] | '`#__menu` AS b ON a.lft > b.lft AND a.rgt < b.rgt' |
| 2 | 2 | [[#3c8f5e80]] | '`#__categories` AS b ON a.lft > b.lft AND a.rgt < b.rgt' |
| 3 | 1 | [[#3c8f5e40]] | $menuType |
| 3 | 2 | [[#3c8f5e40]] | $extension |
| 4 | 1 | [[#3c8f5d80]] | 'menutype' |
| 4 | 2 | [[#3c8f5d80]] | 'extension' |
| 5 | 1 | [[#3c8f56a0]] | '(a.menutype = ' |
| 5 | 2 | [[#3c8f56a0]] | '(a.extension = ' |