Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
45 | 2 | 3 | 0.995 | switch_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 45 | 49 | components/com_content/helpers/query.php |
2 | 45 | 53 | plugins/content/pagenavigation.php |
| ||||
switch ($orderby) { case 'date' : $orderby= 'a.created'; break; case 'rdate' : $orderby= 'a.created DESC'; break; case 'alpha' : $orderby= 'a.title'; break; case 'ralpha' : $orderby= 'a.title DESC'; break; case 'hits' : $orderby= 'a.hits DESC'; break; case 'rhits' : $orderby= 'a.hits'; break; case 'order' : $orderby= 'a.ordering'; break; case 'author' : $orderby= 'a.created_by_alias, u.name'; break; case 'rauthor' : $orderby= 'a.created_by_alias DESC, u.name DESC'; break; case 'front' : $orderby= 'f.ordering'; break; default : $orderby= 'a.ordering'; break; } |
| ||||
// Determine sort order switch ($order_method) { case 'date' : $orderby= 'a.created'; break; case 'rdate' : $orderby= 'a.created DESC'; break; case 'alpha' : $orderby= 'a.title'; break; case 'ralpha' : $orderby= 'a.title DESC'; break; case 'hits' : $orderby= 'a.hits'; break; case 'rhits' : $orderby= 'a.hits DESC'; break; case 'order' : $orderby= 'a.ordering'; break; case 'author' : $orderby= 'a.created_by_alias, u.name'; break; case 'rauthor' : $orderby= 'a.created_by_alias DESC, u.name DESC'; break; case 'front' : $orderby= 'f.ordering'; break; default : $orderby= 'a.ordering'; break; } |
| |||
// Determine sort order switch ( [[#variable52212700]]) { case 'date': $orderby='a.created'; break; case 'rdate': $orderby='a.created DESC'; break; case 'alpha': $orderby='a.title'; break; case 'ralpha': $orderby='a.title DESC'; break; case 'hits': $orderby= [[#variable52212600]]; break; case 'rhits': $orderby= [[#variable52212620]]; break; case 'order': $orderby='a.ordering'; break; case 'author': $orderby='a.created_by_alias, u.name'; break; case 'rauthor': $orderby='a.created_by_alias DESC, u.name DESC'; break; case 'front': $orderby='f.ordering'; break; default : $orderby='a.ordering'; break; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#52212700]] | $orderby |
1 | 2 | [[#52212700]] | $order_method |
2 | 1 | [[#52212600]] | 'a.hits DESC' |
2 | 2 | [[#52212600]] | 'a.hits' |
3 | 1 | [[#52212620]] | 'a.hits' |
3 | 2 | [[#52212620]] | 'a.hits DESC' |