CloneSet253


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8550.961statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18340
administrator/components/com_banners/controllers/banner.php
28373
administrator/components/com_contact/admin.contact.php
38402
administrator/components/com_modules/models/module.php
48433
administrator/components/com_modules/models/module.php
58304
administrator/components/com_newsfeeds/admin.newsfeeds.php
Clone Instance
1
Line Count
8
Source Line
340
Source File
administrator/components/com_banners/controllers/banner.php

                $cids=  implode(',', $cid);

                $query=  'UPDATE #__banner'
                         . ' SET showBanner = '
                         .               (int) $publish
                         . ' WHERE bid IN ('
                         .           $cids
                         .                 ')'
                         . ' AND (checked_out = 0 OR (checked_out = '
                         .                                    (int) $user->get('id')
                .                                                                     '))';
                $db->setQuery($query);


Clone Instance
2
Line Count
8
Source Line
373
Source File
administrator/components/com_contact/admin.contact.php

        $cids=  implode(',', $cid);

        $query=  'UPDATE #__contact_details'
                 . ' SET published = '
                 .              (int) $state
                 . ' WHERE id IN ('
                 .          $cids
                 .                 ')'
                 . ' AND (checked_out = 0 OR (checked_out = '
                 .                                    (int) $user->get('id')
        .                                                                     '))';
        $db->setQuery($query);


Clone Instance
3
Line Count
8
Source Line
402
Source File
administrator/components/com_modules/models/module.php

                        $cids=  implode(',', $cid);

                        $query=  'UPDATE #__modules'
                                 . ' SET published = '
                                 .                    (int) $publish
                                 . ' WHERE id IN ('
                                 .                 $cids
                                 .                       ')'
                                 . ' AND (checked_out = 0 OR (checked_out = '
                                 .                                           (int) $user->get('id')
                        .                                                                           '))';
                        $this->_db->setQuery($query);


Clone Instance
4
Line Count
8
Source Line
433
Source File
administrator/components/com_modules/models/module.php

                        $cids=  implode(',', $cid);

                        $query=  'UPDATE #__modules'
                                 . ' SET access = '
                                 .                 (int) $access
                                 . ' WHERE id IN ('
                                 .                 $cids
                                 .                       ')'
                                 . ' AND (checked_out = 0 OR (checked_out = '
                                 .                                           (int) $user->get('id')
                        .                                                                           '))';
                        $this->_db->setQuery($query);


Clone Instance
5
Line Count
8
Source Line
304
Source File
administrator/components/com_newsfeeds/admin.newsfeeds.php

        $cids=  implode(',', $cid);

        $query=  'UPDATE #__newsfeeds'
                 . ' SET published = '
                 .            (int) $publish
                 . ' WHERE id IN ('
                 .          $cids
                 .                 ')'
                 . ' AND (checked_out = 0 OR (checked_out = '
                 .                                   (int) $user->get('id')
        .                                                                    '))';
        $db->setQuery($query);


Clone AbstractionParameter Count: 5Parameter Bindings

$cids=implode(',',$cid);
$query= [[#variable526d4ce0]]
       .  [[#variable526d4c20]]
       . (int) [[#variable526d4b40]]
       .  [[#variable526d4a80]]
       . $cids
       . ')'
       . ' AND (checked_out = 0 OR (checked_out = '
       . (int) $user->get('id')
. '))';
 [[#variable526d4aa0]]->setQuery($query);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#526d4ce0]]
'UPDATE #__banner' 
12[[#526d4ce0]]
'UPDATE #__contact_details' 
13[[#526d4ce0]]
'UPDATE #__modules' 
14[[#526d4ce0]]
'UPDATE #__modules' 
15[[#526d4ce0]]
'UPDATE #__newsfeeds' 
21[[#526d4c20]]
' SET showBanner = ' 
22[[#526d4c20]]
' SET published = ' 
23[[#526d4c20]]
' SET access = ' 
24[[#526d4c20]]
' SET published = ' 
25[[#526d4c20]]
' SET published = ' 
31[[#526d4b40]]
$publish 
32[[#526d4b40]]
$state 
33[[#526d4b40]]
$access 
34[[#526d4b40]]
$publish 
35[[#526d4b40]]
$publish 
41[[#526d4a80]]
' WHERE bid IN (' 
42[[#526d4a80]]
' WHERE id IN (' 
43[[#526d4a80]]
' WHERE id IN (' 
44[[#526d4a80]]
' WHERE id IN (' 
45[[#526d4a80]]
' WHERE id IN (' 
51[[#526d4aa0]]
$db 
52[[#526d4aa0]]
$db 
53[[#526d4aa0]]
$this->_db 
54[[#526d4aa0]]
$this->_db 
55[[#526d4aa0]]
$db