CloneSet1812


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5220.979statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1586
administrator/components/com_search/helpers/search.php
2593
administrator/components/com_search/helpers/search.php
Clone Instance
1
Line Count
5
Source Line
86
Source File
administrator/components/com_search/helpers/search.php

                        $query=  'SELECT hits'
                                 . ' FROM #__core_log_searches'
                                 . ' WHERE LOWER(search_term) = "'
                                 .                        $search_term
                                 .                                     '"';
                        $db->setQuery($query);


Clone Instance
2
Line Count
5
Source Line
93
Source File
administrator/components/com_search/helpers/search.php

                                $query=  'UPDATE #__core_log_searches'
                                         . ' SET hits = (hits + 1)'
                                         . ' WHERE LOWER(search_term) = "'
                                         .                        $search_term
                                         .                                     '"';
                                $db->setQuery($query);


Clone AbstractionParameter Count: 2Parameter Bindings

$query= [[#variable44bec5a0]]
       .  [[#variable44bc7460]]
       . ' WHERE LOWER(search_term) = "'
       . $search_term
       . '"';
$db->setQuery($query);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#44bec5a0]]
'UPDATE #__core_log_searches' 
12[[#44bec5a0]]
'SELECT hits' 
21[[#44bc7460]]
' SET hits = (hits + 1)' 
22[[#44bc7460]]
' FROM #__core_log_searches'