Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 5 | 0.954 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 1486 | libraries/phpmailer/phpmailer.php |
2 | 4 | 85 | plugins/authentication/openid/Auth/Yadis/ParseHTML.php |
| ||||
$str= str_replace("\r", "\n", $str); $str= str_replace("\n", $this->LE ,$str); return $str; |
| ||||
// Replace numeric entities because html_entity_decode doesn't // do it for us. $str= preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $str); $str= preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $str); return $str; |
| |||
// Replace numeric entities because html_entity_decode doesn't // do it for us. $str= [[#variable23a97680]]( [[#variable23a975a0]], [[#variable23a97560]],$str); $str= [[#variable23a97680]]( [[#variable23a974c0]], [[#variable23a973a0]],$str); return $str; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#23a97680]] | str_replace |
1 | 2 | [[#23a97680]] | preg_replace |
2 | 1 | [[#23a975a0]] | "\r" |
2 | 2 | [[#23a975a0]] | '~&#x([0-9a-f]+);~ei' |
3 | 1 | [[#23a97560]] | "\n" |
3 | 2 | [[#23a97560]] | 'chr(hexdec("\\1"))' |
4 | 1 | [[#23a974c0]] | "\n" |
4 | 2 | [[#23a974c0]] | '~&#([0-9]+);~e' |
5 | 1 | [[#23a973a0]] | $this->LE |
5 | 2 | [[#23a973a0]] | 'chr(\\1)' |