| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 12 | 4 | 0 | 1.000 | statement_sequence[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 12 | 557 | libraries/joomla/access/permission/accesslevel.php |
| 2 | 12 | 640 | libraries/joomla/access/permission/accesslevel.php |
| 3 | 12 | 520 | libraries/joomla/access/permission/simplerule.php |
| 4 | 12 | 603 | libraries/joomla/access/permission/simplerule.php |
| ||||
$db->setQuery(
'SELECT `id`'
. ' FROM `#__access_rules`'
. ' WHERE `name` = '
. $db->Quote($this->_rule_name)
. ' AND `section_id` = '
. (int) $this->_section_id);
$ruleId= (int) $db->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
$this->setError($db->getErrorMsg());
return FALSE;
}
|
| ||||
$db->setQuery(
'SELECT `id`'
. ' FROM `#__access_rules`'
. ' WHERE `name` = '
. $db->Quote($this->_rule_name)
. ' AND `section_id` = '
. (int) $this->_section_id);
$ruleId= (int) $db->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
$this->setError($db->getErrorMsg());
return FALSE;
}
|
| ||||
// Attempt to load the rule id.
$db->setQuery(
'SELECT `id`'
. ' FROM `#__access_rules`'
. ' WHERE `name` = '
. $db->Quote($this->_rule_name)
. ' AND `section_id` = '
. (int) $this->_section_id);
$ruleId= (int) $db->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
$this->setError($db->getErrorMsg());
return FALSE;
}
|
| ||||
$db->setQuery(
'SELECT `id`'
. ' FROM `#__access_rules`'
. ' WHERE `name` = '
. $db->Quote($this->_rule_name)
. ' AND `section_id` = '
. (int) $this->_section_id);
$ruleId= (int) $db->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
$this->setError($db->getErrorMsg());
return FALSE;
}
|
| |||
// Attempt to load the rule id.
$db->setQuery('SELECT `id`'
. ' FROM `#__access_rules`'
. ' WHERE `name` = '
. $db->Quote($this->_rule_name)
. ' AND `section_id` = '
. (int) $this->_section_id);
$ruleId= (int) $db->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
$this->setError($db->getErrorMsg());
return FALSE;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| None | |||