Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 3 | 0.976 | if_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 242 | includes/router.php |
2 | 8 | 307 | 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]))); } } |
| ||||
// 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]))); } } |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#21bdef60]] | $parts |
1 | 2 | [[#21bdef60]] | //decode the route segments $segments |
2 | 1 | [[#21bdef20]] | _encodeSegments |
2 | 2 | [[#21bdef20]] | _decodeSegments |
3 | 1 | [[#21bdef40]] | urlencode |
3 | 2 | [[#21bdef40]] | urldecode |