CloneSet1045


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13210.994switch_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113262
administrator/components/com_modules/controller.php
213196
administrator/components/com_plugins/controller.php
Clone Instance
1
Line Count
13
Source Line
262
Source File
administrator/components/com_modules/controller.php

                switch ($task) {

                        case 'accesspublic':
                                $access=  0;
                                break;

                        case 'accessregistered':
                                $access=  1;
                                break;

                        case 'accessspecial':
                                $access=  2;
                                break;
                      }


Clone Instance
2
Line Count
13
Source Line
196
Source File
administrator/components/com_plugins/controller.php

                switch ( $access) {

                        case 'accesspublic':
                                $access=  0;
                                break;

                        case 'accessregistered':
                                $access=  1;
                                break;

                        case 'accessspecial':
                                $access=  2;
                                break;
                      }


Clone AbstractionParameter Count: 1Parameter Bindings

switch ( [[#variable22ac54c0]]) {
  case 'accesspublic':
    $access=0;
    break;
  case 'accessregistered':
    $access=1;
    break;
  case 'accessspecial':
    $access=2;
    break;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#22ac54c0]]
$task 
12[[#22ac54c0]]
$access