| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 9 | 2 | 2 | 0.993 | if_statement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 8 | 336 | administrator/components/com_contact/admin.contact.php |
| 2 | 9 | 301 | administrator/components/com_messages/admin.messages.php |
| ||||
if (count($cid)) {
$cids= implode(',', $cid);
$query= 'DELETE FROM #__contact_details'
. ' WHERE id IN ('
. $cids
. ')';
$db->setQuery($query);
if (!$db->query()) {
echo "<script> alert('"
. $db->getErrorMsg(TRUE)
. "'); window.history.go(-1); </script>\n";
}
}
|
| ||||
if (count($cid))
{
$cids= implode(',', $cid);
$query= 'DELETE FROM #__messages'
. ' WHERE message_id IN ('
. $cids
. ')';
$db->setQuery($query);
if (!$db->query()) {
echo "<script> alert('"
. $db->getErrorMsg(TRUE)
. "'); window.history.go(-1); </script>\n";
}
}
|
| |||
if (count($cid)) {
$cids=implode(',',$cid);
$query= [[#variable21c4c540]]
. [[#variable4c7e4dc0]]
. $cids
. ')';
$db->setQuery($query);
if (!$db->query()) {
echo "<script> alert('"
. $db->getErrorMsg(TRUE)
. "'); window.history.go(-1); </script>\n";
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#21c4c540]] | 'DELETE FROM #__messages' |
| 1 | 2 | [[#21c4c540]] | 'DELETE FROM #__contact_details' |
| 2 | 1 | [[#4c7e4dc0]] | ' WHERE message_id IN (' |
| 2 | 2 | [[#4c7e4dc0]] | ' WHERE id IN (' |