CloneSet827


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9250.967statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110105
libraries/joomla/access/access.php
29312
libraries/joomla/access/access.php
Clone Instance
1
Line Count
10
Source Line
105
Source File
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');


Clone Instance
2
Line Count
9
Source Line
312
Source File
libraries/joomla/access/access.php

                $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');


Clone AbstractionParameter Count: 5Parameter Bindings

// 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#47784080]]
'INNER' 
12[[#47784080]]
'LEFT' 
21[[#227abfe0]]
'`#__access_rules` AS r ON r.id = arm.rule_id' 
22[[#227abfe0]]
'#__access_action_rule_map arm ON arm.rule_id = r.id' 
31[[#227abf60]]
'`#__user_rule_map` AS urm ON r.id = urm.rule_id' 
32[[#227abf60]]
'#__access_actions a ON a.id = arm.action_id' 
41[[#227abf00]]
'`#__access_assetgroup_rule_map` AS agrm ON r.id = agrm.rule_id' 
42[[#227abf00]]
'#__user_rule_map urm ON urm.rule_id = r.id' 
51[[#227abe80]]
'`#__access_assetgroups` AS ag ON agrm.group_id = ag.id' 
52[[#227abe80]]
'#__access_asset_rule_map asrm ON asrm.rule_id=r.id'