Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 4 | 3 | 0.984 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 463 | libraries/joomla/database/table.php |
2 | 11 | 487 | libraries/joomla/database/table.php |
3 | 11 | 656 | libraries/joomla/database/table.php |
4 | 11 | 680 | libraries/joomla/database/table.php |
| ||||
$this->_db->setQuery( 'SELECT `id`' . ' FROM `#__access_sections`' . ' WHERE `name` = ' . $this->_db->Quote($section)); $sectionId= $this->_db->loadResult(); // Check for a database error. if ($this->_db->getErrorNum()) { $this->setError($this->_db->getErrorMsg()); return FALSE; } |
| ||||
// Get the asset id for the asset. $this->_db->setQuery( 'SELECT `id`' . ' FROM `#__access_assets`' . ' WHERE `name` = ' . $this->_db->Quote($name)); $assetId= $this->_db->loadResult(); // Check for a database error. if ($this->_db->getErrorNum()) { $this->setError($this->_db->getErrorMsg()); return FALSE; } |
| ||||
$this->_db->setQuery( 'SELECT `id`' . ' FROM `#__access_sections`' . ' WHERE `name` = ' . $this->_db->Quote($section)); $sectionId= $this->_db->loadResult(); // Check for a database error. if ($this->_db->getErrorNum()) { $this->setError($this->_db->getErrorMsg()); return FALSE; } |
| ||||
// Get the asset id for the asset. $this->_db->setQuery( 'SELECT `id`' . ' FROM `#__access_assets`' . ' WHERE `name` = ' . $this->_db->Quote($name)); $assetId= $this->_db->loadResult(); // Check for a database error. if ($this->_db->getErrorNum()) { $this->setError($this->_db->getErrorMsg()); return FALSE; } |
| |||
// Get the asset id for the asset. $this->_db->setQuery('SELECT `id`' . [[#variable2447cec0]] . ' WHERE `name` = ' . $this->_db->Quote( [[#variable2447cde0]])); [[#variable2447cdc0]]=$this->_db->loadResult(); // Check for a database error. if ($this->_db->getErrorNum()) { $this->setError($this->_db->getErrorMsg()); return FALSE; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2447cec0]] | ' FROM `#__access_sections`' |
1 | 2 | [[#2447cec0]] | ' FROM `#__access_assets`' |
1 | 3 | [[#2447cec0]] | ' FROM `#__access_sections`' |
1 | 4 | [[#2447cec0]] | ' FROM `#__access_assets`' |
2 | 1 | [[#2447cde0]] | $section |
2 | 2 | [[#2447cde0]] | $name |
2 | 3 | [[#2447cde0]] | $section |
2 | 4 | [[#2447cde0]] | $name |
3 | 1 | [[#2447cdc0]] | $sectionId |
3 | 2 | [[#2447cdc0]] | $assetId |
3 | 3 | [[#2447cdc0]] | $sectionId |
3 | 4 | [[#2447cdc0]] | $assetId |