CloneSet619


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.993if_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18336
administrator/components/com_contact/admin.contact.php
29301
administrator/components/com_messages/admin.messages.php
Clone Instance
1
Line Count
8
Source Line
336
Source File
administrator/components/com_contact/admin.contact.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";
                      }
              }


Clone Instance
2
Line Count
9
Source Line
301
Source File
administrator/components/com_messages/admin.messages.php

        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";
                      }
              }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#21c4c540]]
'DELETE FROM #__messages' 
12[[#21c4c540]]
'DELETE FROM #__contact_details' 
21[[#4c7e4dc0]]
' WHERE message_id IN (' 
22[[#4c7e4dc0]]
' WHERE id IN ('