Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 5 | 0.967 | statement_sequence[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 105 | libraries/joomla/access/access.php |
2 | 9 | 312 | libraries/joomla/access/access.php |
| ||||
// Join on the action-to-rule map $query->join('LEFT', '#__access_action_rule_map arm ON arm.rule_id = r.id'); // Join on the map to get to the action. This is for WHERE a.name = $actionName later on. $query->join('LEFT', '#__access_actions a ON a.id = arm.action_id'); // Join any individual users mapped to the rule $query->join('LEFT', '#__user_rule_map urm ON urm.rule_id = r.id'); // Join any individual assets mapped to the rule $query->join('LEFT', '#__access_asset_rule_map asrm ON asrm.rule_id=r.id'); |
| ||||
$query->join('INNER', '`#__access_rules` AS r ON r.id = arm.rule_id'); // Map users and/or user groups to rules $query->join('LEFT', '`#__user_rule_map` AS urm ON r.id = urm.rule_id'); // Map users to user groups //$query->join('LEFT', '`#__usergroups` AS ug ON ugrm.group_id = ug.id'); //$query->join('LEFT', '`#__user_usergroup_map` AS uugm ON ug.id = uugm.group_id'); // Map the assets to rules $query->join('INNER', '`#__access_assetgroup_rule_map` AS agrm ON r.id = agrm.rule_id'); $query->join('INNER', '`#__access_assetgroups` AS ag ON agrm.group_id = ag.id'); |
| |||
// Join on the action-to-rule map $query->join( [[#variable47784080]], [[#variable227abfe0]]); // Map users and/or user groups to rules // Join on the map to get to the action. This is for WHERE a.name = $actionName later on. $query->join('LEFT', [[#variable227abf60]]); // Map users to user groups //$query->join('LEFT', '`#__usergroups` AS ug ON ugrm.group_id = ug.id'); //$query->join('LEFT', '`#__user_usergroup_map` AS uugm ON ug.id = uugm.group_id'); // Map the assets to rules // Join any individual users mapped to the rule $query->join( [[#variable47784080]], [[#variable227abf00]]); // Join any individual assets mapped to the rule $query->join( [[#variable47784080]], [[#variable227abe80]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#47784080]] | 'INNER' |
1 | 2 | [[#47784080]] | 'LEFT' |
2 | 1 | [[#227abfe0]] | '`#__access_rules` AS r ON r.id = arm.rule_id' |
2 | 2 | [[#227abfe0]] | '#__access_action_rule_map arm ON arm.rule_id = r.id' |
3 | 1 | [[#227abf60]] | '`#__user_rule_map` AS urm ON r.id = urm.rule_id' |
3 | 2 | [[#227abf60]] | '#__access_actions a ON a.id = arm.action_id' |
4 | 1 | [[#227abf00]] | '`#__access_assetgroup_rule_map` AS agrm ON r.id = agrm.rule_id' |
4 | 2 | [[#227abf00]] | '#__user_rule_map urm ON urm.rule_id = r.id' |
5 | 1 | [[#227abe80]] | '`#__access_assetgroups` AS ag ON agrm.group_id = ag.id' |
5 | 2 | [[#227abe80]] | '#__access_asset_rule_map asrm ON asrm.rule_id=r.id' |