Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 2 | 0.989 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 678 | libraries/joomla/access/permission/accesslevel.php |
2 | 10 | 643 | libraries/joomla/access/permission/simplerule.php |
| ||||
// Map the assetgroup to the rule. $db->setQuery( 'REPLACE INTO `#__access_assetgroup_rule_map` (`group_id`, `rule_id`) VALUES' . ' (' . (int) $this->_asset_group_id . ', ' . (int) $this->_rule_id . ')'); $db->query(); // Check for a database error. if ($db->getErrorNum()) { $this->setError($db->getErrorMsg()); return FALSE; } |
| ||||
$db->setQuery( 'REPLACE INTO `#__access_asset_rule_map` (`asset_id`, `rule_id`) VALUES' . ' (' . (int) $this->_asset_id . ', ' . (int) $this->_rule_id . ')'); $db->query(); // Check for a database error. if ($db->getErrorNum()) { $this->setError($db->getErrorMsg()); return FALSE; } |
| |||
// Map the assetgroup to the rule. $db->setQuery( [[#variable23e6f9e0]] . ' (' . (int) $this-> [[#variable23e6f9a0]] . ', ' . (int) $this->_rule_id . ')'); $db->query(); // Check for a database error. if ($db->getErrorNum()) { $this->setError($db->getErrorMsg()); return FALSE; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#23e6f9e0]] | 'REPLACE INTO `#__access_assetgroup_rule_map` (`group_id`, `rule_id`) VALUES' |
1 | 2 | [[#23e6f9e0]] | 'REPLACE INTO `#__access_asset_rule_map` (`asset_id`, `rule_id`) VALUES' |
2 | 1 | [[#23e6f9a0]] | _asset_group_id |
2 | 2 | [[#23e6f9a0]] | _asset_id |