CloneSet1478


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.984statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1657
modules/mod_stats/helper.php
2693
modules/mod_stats/helper.php
Clone Instance
1
Line Count
6
Source Line
57
Source File
modules/mod_stats/helper.php

                        $query=  'SELECT COUNT(id) AS count_items'
                                 . ' FROM #__content'
                                 . ' WHERE state = "1"';

                        $db->setQuery($query);
                        $items=  $db->loadResult();


Clone Instance
2
Line Count
6
Source Line
93
Source File
modules/mod_stats/helper.php

                        $query=  'SELECT SUM(hits) AS count_hits'
                                 . ' FROM #__content'
                                 . ' WHERE state = "1"';

                        $db->setQuery($query);
                        $hits=  $db->loadResult();


Clone AbstractionParameter Count: 2Parameter Bindings

$query= [[#variable525b8f20]]
       . ' FROM #__content'
       . ' WHERE state = "1"';
$db->setQuery($query);
 [[#variable525b99c0]]=$db->loadResult();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#525b8f20]]
'SELECT SUM(hits) AS count_hits' 
12[[#525b8f20]]
'SELECT COUNT(id) AS count_items' 
21[[#525b99c0]]
$hits 
22[[#525b99c0]]
$items