Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 6 | 0.970 | statement_sequence[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 235 | libraries/joomla/access/access.php |
2 | 4 | 272 | 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'); |
| ||||
$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'); |
| |||
$query->select($recursive ? [[#variable22ad5440]] : [[#variable22ad53e0]]); $query->from( [[#variable22ad5360]]); $query->where( [[#variable22ad52c0]] . (int) [[#variable22ad51c0]]); $query->join('LEFT', [[#variable22ad5220]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#22ad5440]] | 'ug2.id' |
1 | 2 | [[#22ad5440]] | 'ag2.id' |
2 | 1 | [[#22ad53e0]] | 'ug1.id' |
2 | 2 | [[#22ad53e0]] | 'ag1.id' |
3 | 1 | [[#22ad5360]] | '#__user_usergroup_map AS uugm' |
3 | 2 | [[#22ad5360]] | '#__access_asset_assetgroup_map AS aagm' |
4 | 1 | [[#22ad52c0]] | 'uugm.user_id = ' |
4 | 2 | [[#22ad52c0]] | 'aagm.asset_id = ' |
5 | 1 | [[#22ad51c0]] | $userId |
5 | 2 | [[#22ad51c0]] | $assetId |
6 | 1 | [[#22ad5220]] | '#__usergroups AS ug1 ON ug1.id = uugm.group_id' |
6 | 2 | [[#22ad5220]] | '#__access_assetgroups AS ag1 ON ag1.id = aagm.group_id' |