| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 13 | 2 | 3 | 0.966 | abstract_class_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 13 | 170 | libraries/joomla/mail/mail.php |
| 2 | 13 | 194 | libraries/joomla/mail/mail.php |
| ||||
/**
* Add carbon copy recipients to the email
*
* @param mixed $cc Either a string or array of strings [e-mail address(es)]
* @return void
* @since 1.5
*/
public
function addCC($cc) {
//If the carbon copy recipient is an aray, add each recipient... otherwise just add the one
if ( isset ($cc))
{
if (is_array($cc)) {
foreach ($cc as $to) {
$to= JMailHelper::cleanLine($to);
parent::AddCC($to);
}
}
else {
$cc= JMailHelper::cleanLine($cc);
parent::AddCC($cc);
}
}
}
|
| ||||
/**
* Add blind carbon copy recipients to the email
*
* @param mixed $cc Either a string or array of strings [e-mail address(es)]
* @return void
* @since 1.5
*/
public
function addBCC($bcc) {
// If the blind carbon copy recipient is an aray, add each recipient... otherwise just add the one
if ( isset ($bcc))
{
if (is_array($bcc)) {
foreach ($bcc as $to) {
$to= JMailHelper::cleanLine($to);
parent::AddBCC($to);
}
}
else {
$bcc= JMailHelper::cleanLine($bcc);
parent::AddBCC($bcc);
}
}
}
|
| |||
/**
* Add carbon copy recipients to the email
*
* @param mixed $cc Either a string or array of strings [e-mail address(es)]
* @return void
* @since 1.5
*/
/**
* Add blind carbon copy recipients to the email
*
* @param mixed $cc Either a string or array of strings [e-mail address(es)]
* @return void
* @since 1.5
*/
public
function [[#variable3ee74d40]]( [[#variable3ee74ca0]]) {
//If the carbon copy recipient is an aray, add each recipient... otherwise just add the one
// If the blind carbon copy recipient is an aray, add each recipient... otherwise just add the one
if ( isset ( [[#variable3ee74ca0]])) {
if (is_array( [[#variable3ee74ca0]])) {
foreach ( [[#variable3ee74ca0]]as $to) {
$to=JMailHelper::cleanLine($to);
parent:: [[#variable3ee74c40]]($to);
}
}
else {
[[#variable3ee74ca0]]=JMailHelper::cleanLine( [[#variable3ee74ca0]]);
parent:: [[#variable3ee74c40]]( [[#variable3ee74ca0]]);
}
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#3ee74d40]] | addCC |
| 1 | 2 | [[#3ee74d40]] | addBCC |
| 2 | 1 | [[#3ee74ca0]] | $cc |
| 2 | 2 | [[#3ee74ca0]] | $bcc |
| 3 | 1 | [[#3ee74c40]] | AddCC |
| 3 | 2 | [[#3ee74c40]] | AddBCC |