CloneSet232


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
45230.995switch_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14549
components/com_content/helpers/query.php
24553
plugins/content/pagenavigation.php
Clone Instance
1
Line Count
45
Source Line
49
Source File
components/com_content/helpers/query.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;
                      }


Clone Instance
2
Line Count
45
Source Line
53
Source File
plugins/content/pagenavigation.php

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


Clone AbstractionParameter Count: 3Parameter Bindings

// 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#52212700]]
$orderby 
12[[#52212700]]
$order_method 
21[[#52212600]]
'a.hits DESC' 
22[[#52212600]]
'a.hits' 
31[[#52212620]]
'a.hits' 
32[[#52212620]]
'a.hits DESC'