CloneSet1041


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000switch_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11165
plugins/search/categories.php
21164
plugins/search/sections.php
Clone Instance
1
Line Count
11
Source Line
65
Source File
plugins/search/categories.php

        switch ($ordering) {
                case 'alpha':
                        $order=  'a.name ASC';
                        break;

                case 'category':
                case 'popular':
                case 'newest':
                case 'oldest':
                default :
                        $order=  'a.name DESC';
              }


Clone Instance
2
Line Count
11
Source Line
64
Source File
plugins/search/sections.php

        switch ($ordering) {
                case 'alpha':
                        $order=  'a.name ASC';
                        break;

                case 'category':
                case 'popular':
                case 'newest':
                case 'oldest':
                default :
                        $order=  'a.name DESC';
              }


Clone AbstractionParameter Count: 0Parameter Bindings

switch ($ordering) {
  case 'alpha':
    $order='a.name ASC';
    break;
  case 'category':
  case 'popular':
  case 'newest':
  case 'oldest':
  default :
    $order='a.name DESC';
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None