CloneSet577


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16220.969statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116554
libraries/joomla/access/helper.php
216754
libraries/joomla/access/helper.php
Clone Instance
1
Line Count
16
Source Line
554
Source File
libraries/joomla/access/helper.php

                        // Insert the user group into the database.
                        $db->setQuery(
                                'INSERT INTO `#__usergroups` (`parent_id` ,`lft` ,`rgt` ,`title` ,`section_id` ,`section`) VALUES'
                                . ' (1, 0, 0, '
                                .             $db->Quote($title)
                                .                                ', '
                                .                                     (int) $sectionId
                                .                                                     ', '
                                .                                                          $db->Quote($section)
                                .                                                                               ')');
                        $db->query();
                        // Check for a database error.
                        if ($db->getErrorNum()) {
                                return new JException($db->getErrorMsg());
                              }
                        // Get the group id of the user group just inserted.
                        $groupId=  (int) $db->insertid();
                        // Rebuild the groups tree.
                        JAccessHelper::_rebuildGroupsTree();


Clone Instance
2
Line Count
16
Source Line
754
Source File
libraries/joomla/access/helper.php

                        // Insert the assetgroup into the database.
                        $db->setQuery(
                                'INSERT INTO `#__access_assetgroups` (`parent_id` ,`lft` ,`rgt` ,`title` ,`section_id` ,`section`) VALUES'
                                . ' (1, 0, 0, '
                                .             $db->Quote($title)
                                .                                ', '
                                .                                     (int) $sectionId
                                .                                                     ', '
                                .                                                          $db->Quote($section)
                                .                                                                               ')');
                        $db->query();
                        // Check for a database error.
                        if ($db->getErrorNum()) {
                                return new JException($db->getErrorMsg());
                              }
                        // Get the group id of the assetgroup just inserted.
                        $groupId=  (int) $db->insertid();
                        // Rebuild the groups tree.
                        JAccessHelper::_rebuildGroupsTree('assets');


Clone AbstractionParameter Count: 2Parameter Bindings

// Insert the user group into the database.
// Insert the assetgroup into the database.
$db->setQuery( [[#variable3ea655c0]]
              . ' (1, 0, 0, '
              . $db->Quote($title)
              . ', '
              . (int) $sectionId
              . ', '
              . $db->Quote($section)
              . ')');
$db->query();
// Check for a database error.
if ($db->getErrorNum()) {
  return new JException($db->getErrorMsg());
}
// Get the group id of the user group just inserted.
// Get the group id of the assetgroup just inserted.
$groupId= (int) $db->insertid();
// Rebuild the groups tree.
JAccessHelper::_rebuildGroupsTree( [[#variable3ea655a0]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3ea655c0]]
'INSERT INTO `#__usergroups` (`parent_id` ,`lft` ,`rgt` ,`title` ,`section_id` ,`section`) VALUES' 
12[[#3ea655c0]]
'INSERT INTO `#__access_assetgroups` (`parent_id` ,`lft` ,`rgt` ,`title` ,`section_id` ,`section`) VALUES' 
21[[#3ea655a0]]
22[[#3ea655a0]]
'assets'