Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 2 | 0.969 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 554 | libraries/joomla/access/helper.php |
2 | 16 | 754 | 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(); |
| ||||
// 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'); |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3ea655c0]] | 'INSERT INTO `#__usergroups` (`parent_id` ,`lft` ,`rgt` ,`title` ,`section_id` ,`section`) VALUES' |
1 | 2 | [[#3ea655c0]] | 'INSERT INTO `#__access_assetgroups` (`parent_id` ,`lft` ,`rgt` ,`title` ,`section_id` ,`section`) VALUES' |
2 | 1 | [[#3ea655a0]] | |
2 | 2 | [[#3ea655a0]] | 'assets' |