CloneSet1024


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5220.989statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15972
libraries/joomla/database/tablenested.php
251058
libraries/joomla/database/tablenested.php
Clone Instance
1
Line Count
5
Source Line
972
Source File
libraries/joomla/database/tablenested.php

                // Shift left and right values for the sibling and it's children.
                $this->_db->setQuery(
                        'UPDATE `'
                        .          $this->_tbl
                        .                      '`'
                        . ' SET `lft` = `lft` + '
                        .                       (int) $node->width
                        .                                          ', `rgt` = `rgt` + '
                        .                                                               (int) $node->width
                        . ' WHERE `lft` BETWEEN '
                        .                       (int) $sibling->lft
                        .                                           ' AND '
                        .                                                   (int) $sibling->rgt
                        . ' AND `'
                        .        $this->_tbl_key
                        .                        '` NOT IN ('
                        .                                     implode(',', $children)
                        .                                                             ')');


Clone Instance
2
Line Count
5
Source Line
1058
Source File
libraries/joomla/database/tablenested.php

                // Shift left and right values for the sibling and it's children.
                $this->_db->setQuery(
                        'UPDATE `'
                        .          $this->_tbl
                        .                      '`'
                        . ' SET `lft` = `lft` - '
                        .                       (int) $node->width
                        .                                          ', `rgt` = `rgt` - '
                        .                                                               (int) $node->width
                        . ' WHERE `lft` BETWEEN '
                        .                       (int) $sibling->lft
                        .                                           ' AND '
                        .                                                   (int) $sibling->rgt
                        . ' AND `'
                        .        $this->_tbl_key
                        .                        '` NOT IN ('
                        .                                     implode(',', $children)
                        .                                                             ')');


Clone AbstractionParameter Count: 2Parameter Bindings

// Shift left and right values for the sibling and it's children.
$this->_db->setQuery('UPDATE `'
                     . $this->_tbl
                     . '`'
                     .  [[#variable2461b460]]
                     . (int) $node->width
                     .  [[#variable2461b4a0]]
                     . (int) $node->width
                     . ' WHERE `lft` BETWEEN '
                     . (int) $sibling->lft
                     . ' AND '
                     . (int) $sibling->rgt
                     . ' AND `'
                     . $this->_tbl_key
                     . '` NOT IN ('
                     . implode(',',$children)
                     . ')');
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2461b460]]
' SET `lft` = `lft` - ' 
12[[#2461b460]]
' SET `lft` = `lft` + ' 
21[[#2461b4a0]]
', `rgt` = `rgt` - ' 
22[[#2461b4a0]]
', `rgt` = `rgt` + '