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.980 | abstract_class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 33 | libraries/joomla/mail/helper.php |
2 | 3 | 45 | libraries/joomla/mail/helper.php |
| ||||
/** * Cleans single line inputs. * * @static * @param string $value String to be cleaned. * @return string Cleaned string. */ public static function cleanLine($value) { return trim(preg_replace('/(%0A|%0D|\\n+|\\r+)/i','',$value)); } |
| ||||
/** * Cleans multi-line inputs. * * @static * @param string $value Multi-line string to be cleaned. * @return string Cleaned multi-line string. */ public static function cleanText($value) { return trim(preg_replace('/(%0A|%0D|\\n+|\\r+)(content-type:|to:|cc:|bcc:)/i','',$value)); } |
| |||
/** * Cleans single line inputs. * * @static * @param string $value String to be cleaned. * @return string Cleaned string. */ /** * Cleans multi-line inputs. * * @static * @param string $value Multi-line string to be cleaned. * @return string Cleaned multi-line string. */ public static function [[#variable4850a9e0]]($value) { return trim(preg_replace( [[#variable4850a940]],'',$value)); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4850a9e0]] | cleanLine |
1 | 2 | [[#4850a9e0]] | cleanText |
2 | 1 | [[#4850a940]] | '/(%0A|%0D|\\n+|\\r+)/i' |
2 | 2 | [[#4850a940]] | '/(%0A|%0D|\\n+|\\r+)(content-type:|to:|cc:|bcc:)/i' |