CloneSet970


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8210.995statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
181092
libraries/joomla/database/tablenested.php
281108
libraries/joomla/database/tablenested.php
Clone Instance
1
Line Count
8
Source Line
1092
Source File
libraries/joomla/database/tablenested.php

                        // Test for a unique record with parent_id = 0
                        $this->_db->setQuery(
                                'SELECT '
                                .         $this->_db->nameQuote($k)
                                . ' FROM '
                                .        $this->_tbl
                                . ' WHERE `parent_id` = 0');
                        $result=  $this->_db->loadResultArray();
                        if ($this->_db->getErrorNum()) {
                                throw new Exception($this->_db->getErrorMsg());
                              }


Clone Instance
2
Line Count
8
Source Line
1108
Source File
libraries/joomla/database/tablenested.php

                                // Test for a unique record with lft = 0
                                $this->_db->setQuery(
                                        'SELECT '
                                        .         $this->_db->nameQuote($k)
                                        . ' FROM '
                                        .        $this->_tbl
                                        . ' WHERE `lft` = 0');
                                $result=  $this->_db->loadResultArray();
                                if ($this->_db->getErrorNum()) {
                                        throw new Exception($this->_db->getErrorMsg());
                                      }


Clone AbstractionParameter Count: 1Parameter Bindings

// Test for a unique record with parent_id = 0
// Test for a unique record with lft = 0
$this->_db->setQuery('SELECT '
                     . $this->_db->nameQuote($k)
                     . ' FROM '
                     . $this->_tbl
                     .  [[#variable22f3f8a0]]);
$result=$this->_db->loadResultArray();
if ($this->_db->getErrorNum()) {
  throw new Exception($this->_db->getErrorMsg());
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#22f3f8a0]]
' WHERE `parent_id` = 0' 
12[[#22f3f8a0]]
' WHERE `lft` = 0'