CloneSet709


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9320.988statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17300
administrator/components/com_content/models/article.php
27381
administrator/components/com_menus/models/item.php
39453
administrator/components/com_users/models/user.php
Clone Instance
1
Line Count
7
Source Line
300
Source File
administrator/components/com_content/models/article.php

                                $this->_db->setQuery(
                                        'INSERT INTO #__content_frontpage (`content_id`, `ordering`)'
                                        . ' VALUES '
                                        .          implode(',', $tuples));
                                if (!$this->_db->query()) {
                                        $this->setError($this->_db->getErrorMsg());
                                        return FALSE;
                                      }


Clone Instance
2
Line Count
7
Source Line
381
Source File
administrator/components/com_menus/models/item.php

                        $this->_db->setQuery(
                                'INSERT INTO #__modules_menu (moduleid, menuid)'
                                . ' VALUES '
                                .          implode(',', $adds));
                        if (!$this->_db->query()) {
                                $this->setError($this->_db->getErrorMsg());
                                return FALSE;
                              }


Clone Instance
3
Line Count
9
Source Line
453
Source File
administrator/components/com_users/models/user.php

                                $this->_db->setQuery(
                                        'INSERT IGNORE INTO `#__core_acl_groups_aro_map` (`aro_id`, `group_id`)'
                                        . ' VALUES '
                                        .          implode(',', $tuples));

                                // Check for database errors.
                                if (!$this->_db->query()) {
                                        $this->setError($this->_db->getErrorMsg());
                                        return FALSE;
                                      }


Clone AbstractionParameter Count: 2Parameter Bindings

$this->_db->setQuery( [[#variable460d3800]]
                     . ' VALUES '
                     . implode(',', [[#variable460d37a0]]));
// Check for database errors.
if (!$this->_db->query()) {
  $this->setError($this->_db->getErrorMsg());
  return FALSE;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#460d3800]]
'INSERT IGNORE INTO `#__core_acl_groups_aro_map` (`aro_id`, `group_id`)' 
12[[#460d3800]]
'INSERT INTO #__modules_menu (moduleid, menuid)' 
13[[#460d3800]]
'INSERT INTO #__content_frontpage (`content_id`, `ordering`)' 
21[[#460d37a0]]
$tuples 
22[[#460d37a0]]
$adds 
23[[#460d37a0]]
$tuples