CloneSet1297


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.986statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1926
administrator/components/com_contact/elements/contact.php
2934
administrator/components/com_newsfeeds/elements/newsfeed.php
Clone Instance
1
Line Count
9
Source Line
26
Source File
administrator/components/com_contact/elements/contact.php

                $query=  'SELECT a.id, CONCAT(a.name, " - ",a.con_position) AS text, a.catid '
                         . ' FROM #__contact_details AS a'
                         . ' INNER JOIN #__categories AS c ON a.catid = c.id'
                         . ' WHERE a.published = 1'
                         . ' AND c.published = 1'
                         . ' ORDER BY a.catid, a.name';

                $db->setQuery($query);
                $options=  $db->loadObjectList();


Clone Instance
2
Line Count
9
Source Line
34
Source File
administrator/components/com_newsfeeds/elements/newsfeed.php

                $query=  'SELECT a.id, c.title, a.name'
                         . ' FROM #__newsfeeds AS a'
                         . ' INNER JOIN #__categories AS c ON a.catid = c.id'
                         . ' WHERE a.published = 1'
                         . ' AND c.published = 1'
                         . ' ORDER BY a.catid, a.name';

                $db->setQuery($query);
                $options=  $db->loadObjectList();


Clone AbstractionParameter Count: 2Parameter Bindings

$query= [[#variable21496960]]
       .  [[#variable1effa4a0]]
       . ' INNER JOIN #__categories AS c ON a.catid = c.id'
       . ' WHERE a.published = 1'
       . ' AND c.published = 1'
       . ' ORDER BY a.catid, a.name';
$db->setQuery($query);
$options=$db->loadObjectList();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#21496960]]
'SELECT a.id, CONCAT(a.name, " - ",a.con_position) AS text, a.catid ' 
12[[#21496960]]
'SELECT a.id, c.title, a.name' 
21[[#1effa4a0]]
' FROM #__contact_details AS a' 
22[[#1effa4a0]]
' FROM #__newsfeeds AS a'