Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 2 | 0.988 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 428 | libraries/joomla/utilities/string.php |
2 | 3 | 454 | libraries/joomla/utilities/string.php |
| ||||
//quote charlist for use in a characterclass $charlist= preg_replace('!([\\\\\\-\\]\\[/^])!','\\\\${1}',$charlist); return preg_replace('/^[' . $charlist . ']+/u','',$str); |
| ||||
//quote charlist for use in a characterclass $charlist= preg_replace('!([\\\\\\-\\]\\[/^])!','\\\\${1}',$charlist); return preg_replace('/[' . $charlist . ']+$/u','',$str); |
| |||
//quote charlist for use in a characterclass $charlist=preg_replace('!([\\\\\\-\\]\\[/^])!','\\\\${1}',$charlist); return preg_replace( [[#variable24754200]] . $charlist . [[#variable247541c0]],'',$str); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#24754200]] | '/[' |
1 | 2 | [[#24754200]] | '/^[' |
2 | 1 | [[#247541c0]] | ']+$/u' |
2 | 2 | [[#247541c0]] | ']+/u' |