CloneSet851


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14240.981switch_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11462
plugins/search/contacts.php
21488
plugins/search/newsfeeds.php
Clone Instance
1
Line Count
14
Source Line
62
Source File
plugins/search/contacts.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';
              }


Clone Instance
2
Line Count
14
Source Line
88
Source File
plugins/search/newsfeeds.php

        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';
              }


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4662a680]]
'popular' 
12[[#4662a680]]
'oldest' 
21[[#4662a5e0]]
'newest' 
22[[#4662a5e0]]
'popular' 
31[[#4662a560]]
'oldest' 
32[[#4662a560]]
'newest' 
41[[#4662a500]]
'a.name DESC' 
42[[#4662a500]]
'a.name ASC'