Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 5 | 4 | 0.958 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 159 | libraries/joomla/registry/registry.php |
2 | 3 | 43 | libraries/loader.php |
3 | 2 | 248 | plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/edit.php |
4 | 2 | 94 | plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/tinybrowser.php |
5 | 2 | 35 | plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/upload_process.php |
| ||||
// Explode the registry path into an array $nodes= explode('.', $regpath); // Get the namespace $count= count($nodes); |
| ||||
$parts= explode('.', $filePath); $classname= array_pop($parts); |
| ||||
// get file extension $nameparts= explode('.',$filename); $ext= end($nameparts); |
| ||||
// get file extension $nameparts= explode('.',$filename); $ext= end($nameparts); |
| ||||
//-- Bad extensions $nameparts= explode('.',$dest_filename); $ext= end($nameparts); |
| |||
[[#variable21ea3600]]=explode('.', [[#variable21ea3500]]); [[#variable21ea3580]]= [[#variable21ea3520]]( [[#variable21ea3600]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#21ea3600]] | // get file extension $nameparts |
1 | 2 | [[#21ea3600]] | //-- Bad extensions $nameparts |
1 | 3 | [[#21ea3600]] | $parts |
1 | 4 | [[#21ea3600]] | // Explode the registry path into an array $nodes |
1 | 5 | [[#21ea3600]] | // get file extension $nameparts |
2 | 1 | [[#21ea3500]] | $filename |
2 | 2 | [[#21ea3500]] | $dest_filename |
2 | 3 | [[#21ea3500]] | $filePath |
2 | 4 | [[#21ea3500]] | $regpath |
2 | 5 | [[#21ea3500]] | $filename |
3 | 1 | [[#21ea3580]] | $ext |
3 | 2 | [[#21ea3580]] | $ext |
3 | 3 | [[#21ea3580]] | $classname |
3 | 4 | [[#21ea3580]] | // Get the namespace $count |
3 | 5 | [[#21ea3580]] | $ext |
4 | 1 | [[#21ea3520]] | end |
4 | 2 | [[#21ea3520]] | end |
4 | 3 | [[#21ea3520]] | array_pop |
4 | 4 | [[#21ea3520]] | count |
4 | 5 | [[#21ea3520]] | end |