Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 4 | 0.981 | switch_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 62 | plugins/search/contacts.php |
2 | 14 | 88 | plugins/search/newsfeeds.php |
| ||||
switch ($ordering) { case 'alpha': $order= 'a.name ASC'; break; case 'category': $order= 'b.title ASC, a.name ASC'; break; case 'popular': case 'newest': case 'oldest': default : $order= 'a.name DESC'; } |
| ||||
switch ($ordering) { case 'alpha': $order= 'a.name ASC'; break; case 'category': $order= 'b.title ASC, a.name ASC'; break; case 'oldest': case 'popular': case 'newest': default : $order= 'a.name ASC'; } |
| |||
switch ($ordering) { case 'alpha': $order='a.name ASC'; break; case 'category': $order='b.title ASC, a.name ASC'; break; case [[#variable4662a680]]: case [[#variable4662a5e0]]: case [[#variable4662a560]]: default : $order= [[#variable4662a500]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4662a680]] | 'popular' |
1 | 2 | [[#4662a680]] | 'oldest' |
2 | 1 | [[#4662a5e0]] | 'newest' |
2 | 2 | [[#4662a5e0]] | 'popular' |
3 | 1 | [[#4662a560]] | 'oldest' |
3 | 2 | [[#4662a560]] | 'newest' |
4 | 1 | [[#4662a500]] | 'a.name DESC' |
4 | 2 | [[#4662a500]] | 'a.name ASC' |