CloneSet471


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8230.976if_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19242
includes/router.php
28307
includes/router.php
Clone Instance
1
Line Count
9
Source Line
242
Source File
includes/router.php

                                if ($component != "com_search") { // Cheap fix on searches
                                        //decode the route segments
                                        $segments=  $this->_decodeSegments($segments);
                                      }
                                else { // fix up search for URL
                                        $total=  count($segments);
                                        for ($i=0;$i<$total; $i ++) {
                                                // urldecode twice because it is encoded twice
                                                $segments[$i]=  urldecode(urldecode(stripcslashes($segments[$i])));
                                              }
                                      }


Clone Instance
2
Line Count
8
Source Line
307
Source File
includes/router.php

                        // encode the route segments
                        if ($component != "com_search") { // Cheep fix on searches
                                $parts=  $this->_encodeSegments($parts);
                              }
                        else { // fix up search for URL
                                $total=  count($parts);
                                for ($i=0;$i<$total; $i ++) {
                                        // urlencode twice because it is decoded once after redirect
                                        $parts[$i]=  urlencode(urlencode(stripcslashes($parts[$i])));
                                      }
                              }


Clone AbstractionParameter Count: 3Parameter Bindings

// encode the route segments
if ($component != "com_search") { // Cheep fix on searches // Cheap fix on searches
   [[#variable21bdef60]]=$this-> [[#variable21bdef20]]( [[#variable21bdef60]]);
}
else { // fix up search for URL
  $total=count( [[#variable21bdef60]]);
  for ($i=0; $i<$total; $i ++) {
     [[#variable21bdef60]][$i]= [[#variable21bdef40]]( [[#variable21bdef40]](stripcslashes( [[#variable21bdef60]][$i])));
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#21bdef60]]
$parts 
12[[#21bdef60]]
//decode the route segments
$segments 
21[[#21bdef20]]
_encodeSegments 
22[[#21bdef20]]
_decodeSegments 
31[[#21bdef40]]
urlencode 
32[[#21bdef40]]
urldecode