Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 23 | 3 | 0.967 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 116 | administrator/components/com_categories/models/categories.php |
2 | 4 | 120 | administrator/components/com_categories/models/categories.php |
3 | 4 | 112 | administrator/components/com_content/models/articles.php |
4 | 4 | 116 | administrator/components/com_content/models/articles.php |
5 | 4 | 120 | administrator/components/com_content/models/articles.php |
6 | 4 | 48 | administrator/components/com_content/models/featured.php |
7 | 4 | 52 | administrator/components/com_content/models/featured.php |
8 | 4 | 56 | administrator/components/com_content/models/featured.php |
9 | 2 | 183 | administrator/components/com_menus/models/item.php |
10 | 4 | 116 | administrator/components/com_menus/models/items.php |
11 | 4 | 120 | administrator/components/com_menus/models/items.php |
12 | 4 | 46 | administrator/components/com_menus/models/menus.php |
13 | 4 | 50 | administrator/components/com_menus/models/menus.php |
14 | 3 | 54 | administrator/components/com_menus/models/menus.php |
15 | 2 | 51 | administrator/components/com_users/models/groups.php |
16 | 2 | 51 | administrator/components/com_users/models/levels.php |
17 | 2 | 46 | administrator/components/com_users/models/users.php |
18 | 4 | 120 | administrator/components/com_weblinks/models/weblinks.php |
19 | 4 | 124 | administrator/components/com_weblinks/models/weblinks.php |
20 | 4 | 84 | components/com_content/models/article.php |
21 | 4 | 147 | components/com_content/models/frontpage.php |
22 | 2 | 43 | libraries/joomla/form/fields/accesslevels.php |
23 | 2 | 227 | libraries/joomla/html/html/access.php |
| ||||
$query->join('LEFT', '#__users AS uc ON uc.id=a.checked_out'); // Join over the asset groups. $query->select('ag.title AS access_level'); |
| ||||
$query->join('LEFT', '#__access_assetgroups AS ag ON ag.id = a.access'); // Join over the users for the author. $query->select('ua.name AS author_name'); |
| ||||
$query->join('LEFT', '#__users AS uc ON uc.id=a.checked_out'); // Join over the asset groups. $query->select('ag.title AS access_level'); |
| ||||
$query->join('LEFT', '#__access_assetgroups AS ag ON ag.id = a.access'); // Join over the categories. $query->select('c.title AS category_title'); |
| ||||
$query->join('LEFT', '#__categories AS c ON c.id = a.catid'); // Join over the users for the author. $query->select('ua.name AS author_name'); |
| ||||
$query->join('LEFT', '#__users AS uc ON uc.id=a.checked_out'); // Join over the asset groups. $query->select('ag.title AS access_level'); |
| ||||
$query->join('LEFT', '#__access_assetgroups AS ag ON ag.id = a.access'); // Join over the categories. $query->select('c.title AS category_title'); |
| ||||
$query->join('LEFT', '#__categories AS c ON c.id = a.catid'); // Join over the users for the author. $query->select('ua.name AS author_name'); |
| ||||
$query->join('LEFT', '#__access_assetgroups AS ag ON ag.id = a.access'); $query->where('a.published >= 0'); |
| ||||
$query->join('LEFT', '`#__users` AS u ON u.id = a.checked_out'); // Join over the asset groups. $query->select('ag.title AS access_level'); |
| ||||
$query->join('LEFT', '#__access_assetgroups AS ag ON ag.id = a.access'); // Self join to find the level in the tree. $query->select('COUNT(DISTINCT p.id) AS level'); |
| ||||
$query->join('LEFT', '`#__menu` AS m1 ON m1.menutype = a.menutype AND m1.published = 1'); // Self join to find the number of unpublished menu items in the menu. $query->select('COUNT(DISTINCT m2.id) AS count_unpublished'); |
| ||||
$query->join('LEFT', '`#__menu` AS m2 ON m2.menutype = a.menutype AND m2.published = 0'); // Self join to find the number of trashed menu items in the menu. $query->select('COUNT(DISTINCT m3.id) AS count_trashed'); |
| ||||
$query->join('LEFT', '`#__menu` AS m3 ON m3.menutype = a.menutype AND m3.published = -2'); $query->group('a.id'); |
| ||||
$query->join('LEFT', '`#__user_usergroup_map` AS map ON map.group_id = a.id'); $query->group('a.id'); |
| ||||
$query->join('LEFT', '`#__access_sections` AS s ON s.id = a.section_id'); $query->group('a.id'); |
| ||||
$query->join('LEFT', '#__user_usergroup_map AS map ON map.user_id = a.id'); $query->group('a.id'); |
| ||||
$query->join('LEFT', '#__categories AS cc ON cc.id = a.catid'); // Join over the users. $query->select('u.name AS editor'); |
| ||||
$query->join('LEFT', '#__users AS u ON u.id = a.checked_out'); // Join over the asset groups. $query->select('ag.title AS access_level'); |
| ||||
$query->join('LEFT', '#__categories AS c on c.id = a.catid'); // Join on user table. $query->select('u.name AS author'); |
| ||||
$query->join('LEFT', '#__categories AS c ON c.id = a.catid'); // Join over the users for the author. $query->select('ua.name AS author_name'); |
| ||||
$query->join('LEFT', '#__access_assetgroups AS g2 ON a.lft > g2.lft AND a.rgt < g2.rgt'); $query->group('a.id'); |
| ||||
$query->join('LEFT', '`#__access_assetgroups` AS b ON a.lft > b.lft AND a.rgt < b.rgt'); $query->group('a.id'); |
| |||
$query->join('LEFT', [[#variable57fd7a20]]); // Join over the asset groups. // Join over the users for the author. // Join over the categories. // Self join to find the level in the tree. // Self join to find the number of trashed menu items in the menu. // Self join to find the number of unpublished menu items in the menu. // Join over the users. // Join on user table. $query-> [[#variable56a74e20]]( [[#variable4e461a60]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#57fd7a20]] | '#__access_assetgroups AS ag ON ag.id = a.access' |
1 | 2 | [[#57fd7a20]] | '#__users AS uc ON uc.id=a.checked_out' |
1 | 3 | [[#57fd7a20]] | '#__categories AS c ON c.id = a.catid' |
1 | 4 | [[#57fd7a20]] | '#__access_assetgroups AS ag ON ag.id = a.access' |
1 | 5 | [[#57fd7a20]] | '#__access_assetgroups AS ag ON ag.id = a.access' |
1 | 6 | [[#57fd7a20]] | '#__access_assetgroups AS ag ON ag.id = a.access' |
1 | 7 | [[#57fd7a20]] | '`#__users` AS u ON u.id = a.checked_out' |
1 | 8 | [[#57fd7a20]] | '`#__menu` AS m3 ON m3.menutype = a.menutype AND m3.published = -2' |
1 | 9 | [[#57fd7a20]] | '`#__menu` AS m2 ON m2.menutype = a.menutype AND m2.published = 0' |
1 | 10 | [[#57fd7a20]] | '`#__menu` AS m1 ON m1.menutype = a.menutype AND m1.published = 1' |
1 | 11 | [[#57fd7a20]] | '`#__user_usergroup_map` AS map ON map.group_id = a.id' |
1 | 12 | [[#57fd7a20]] | '`#__access_sections` AS s ON s.id = a.section_id' |
1 | 13 | [[#57fd7a20]] | '#__user_usergroup_map AS map ON map.user_id = a.id' |
1 | 14 | [[#57fd7a20]] | '#__users AS u ON u.id = a.checked_out' |
1 | 15 | [[#57fd7a20]] | '#__categories AS cc ON cc.id = a.catid' |
1 | 16 | [[#57fd7a20]] | '#__categories AS c on c.id = a.catid' |
1 | 17 | [[#57fd7a20]] | '#__access_assetgroups AS g2 ON a.lft > g2.lft AND a.rgt < g2.rgt' |
1 | 18 | [[#57fd7a20]] | '`#__access_assetgroups` AS b ON a.lft > b.lft AND a.rgt < b.rgt' |
1 | 19 | [[#57fd7a20]] | '#__users AS uc ON uc.id=a.checked_out' |
1 | 20 | [[#57fd7a20]] | '#__categories AS c ON c.id = a.catid' |
1 | 21 | [[#57fd7a20]] | '#__categories AS c ON c.id = a.catid' |
1 | 22 | [[#57fd7a20]] | '#__access_assetgroups AS ag ON ag.id = a.access' |
1 | 23 | [[#57fd7a20]] | '#__users AS uc ON uc.id=a.checked_out' |
2 | 1 | [[#56a74e20]] | where |
2 | 2 | [[#56a74e20]] | select |
2 | 3 | [[#56a74e20]] | select |
2 | 4 | [[#56a74e20]] | select |
2 | 5 | [[#56a74e20]] | select |
2 | 6 | [[#56a74e20]] | select |
2 | 7 | [[#56a74e20]] | select |
2 | 8 | [[#56a74e20]] | group |
2 | 9 | [[#56a74e20]] | select |
2 | 10 | [[#56a74e20]] | select |
2 | 11 | [[#56a74e20]] | group |
2 | 12 | [[#56a74e20]] | group |
2 | 13 | [[#56a74e20]] | group |
2 | 14 | [[#56a74e20]] | select |
2 | 15 | [[#56a74e20]] | select |
2 | 16 | [[#56a74e20]] | select |
2 | 17 | [[#56a74e20]] | group |
2 | 18 | [[#56a74e20]] | group |
2 | 19 | [[#56a74e20]] | select |
2 | 20 | [[#56a74e20]] | select |
2 | 21 | [[#56a74e20]] | select |
2 | 22 | [[#56a74e20]] | select |
2 | 23 | [[#56a74e20]] | select |
3 | 1 | [[#4e461a60]] | 'a.published >= 0' |
3 | 2 | [[#4e461a60]] | 'ag.title AS access_level' |
3 | 3 | [[#4e461a60]] | 'ua.name AS author_name' |
3 | 4 | [[#4e461a60]] | 'ua.name AS author_name' |
3 | 5 | [[#4e461a60]] | 'c.title AS category_title' |
3 | 6 | [[#4e461a60]] | 'COUNT(DISTINCT p.id) AS level' |
3 | 7 | [[#4e461a60]] | 'ag.title AS access_level' |
3 | 8 | [[#4e461a60]] | 'a.id' |
3 | 9 | [[#4e461a60]] | 'COUNT(DISTINCT m3.id) AS count_trashed' |
3 | 10 | [[#4e461a60]] | 'COUNT(DISTINCT m2.id) AS count_unpublished' |
3 | 11 | [[#4e461a60]] | 'a.id' |
3 | 12 | [[#4e461a60]] | 'a.id' |
3 | 13 | [[#4e461a60]] | 'a.id' |
3 | 14 | [[#4e461a60]] | 'ag.title AS access_level' |
3 | 15 | [[#4e461a60]] | 'u.name AS editor' |
3 | 16 | [[#4e461a60]] | 'u.name AS author' |
3 | 17 | [[#4e461a60]] | 'a.id' |
3 | 18 | [[#4e461a60]] | 'a.id' |
3 | 19 | [[#4e461a60]] | 'ag.title AS access_level' |
3 | 20 | [[#4e461a60]] | 'ua.name AS author_name' |
3 | 21 | [[#4e461a60]] | 'ua.name AS author_name' |
3 | 22 | [[#4e461a60]] | 'c.title AS category_title' |
3 | 23 | [[#4e461a60]] | 'ag.title AS access_level' |