CloneSet880


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4260.970statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14235
libraries/joomla/access/access.php
24272
libraries/joomla/access/access.php
Clone Instance
1
Line Count
4
Source Line
235
Source File
libraries/joomla/access/access.php

                $query->select($recursive
                               ?            'ug2.id'
                               :                       'ug1.id');
                $query->from('#__user_usergroup_map AS uugm');
                $query->where('uugm.user_id = '
                              .                 (int) $userId);
                $query->join('LEFT', '#__usergroups AS ug1 ON ug1.id = uugm.group_id');


Clone Instance
2
Line Count
4
Source Line
272
Source File
libraries/joomla/access/access.php

                $query->select($recursive
                               ?            'ag2.id'
                               :                       'ag1.id');
                $query->from('#__access_asset_assetgroup_map AS aagm');
                $query->where('aagm.asset_id = '
                              .                  (int) $assetId);
                $query->join('LEFT', '#__access_assetgroups AS ag1 ON ag1.id = aagm.group_id');


Clone AbstractionParameter Count: 6Parameter Bindings

$query->select($recursive
               ? [[#variable22ad5440]]
               : [[#variable22ad53e0]]);
$query->from( [[#variable22ad5360]]);
$query->where( [[#variable22ad52c0]]
              . (int) [[#variable22ad51c0]]);
$query->join('LEFT', [[#variable22ad5220]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#22ad5440]]
'ug2.id' 
12[[#22ad5440]]
'ag2.id' 
21[[#22ad53e0]]
'ug1.id' 
22[[#22ad53e0]]
'ag1.id' 
31[[#22ad5360]]
'#__user_usergroup_map AS uugm' 
32[[#22ad5360]]
'#__access_asset_assetgroup_map AS aagm' 
41[[#22ad52c0]]
'uugm.user_id = ' 
42[[#22ad52c0]]
'aagm.asset_id = ' 
51[[#22ad51c0]]
$userId 
52[[#22ad51c0]]
$assetId 
61[[#22ad5220]]
'#__usergroups AS ug1 ON ug1.id = uugm.group_id' 
62[[#22ad5220]]
'#__access_assetgroups AS ag1 ON ag1.id = aagm.group_id'