CloneSet1038


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.989statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110678
libraries/joomla/access/permission/accesslevel.php
210643
libraries/joomla/access/permission/simplerule.php
Clone Instance
1
Line Count
10
Source Line
678
Source File
libraries/joomla/access/permission/accesslevel.php

                // Map the assetgroup to the rule.
                $db->setQuery(
                        'REPLACE INTO `#__access_assetgroup_rule_map` (`group_id`, `rule_id`) VALUES'
                        . ' ('
                        .    (int) $this->_asset_group_id
                        .                                 ', '
                        .                                      (int) $this->_rule_id
                        .                                                            ')');
                $db->query();
                // Check for a database error.
                if ($db->getErrorNum()) {
                        $this->setError($db->getErrorMsg());
                        return FALSE;
                      }


Clone Instance
2
Line Count
10
Source Line
643
Source File
libraries/joomla/access/permission/simplerule.php

                        $db->setQuery(
                                'REPLACE INTO `#__access_asset_rule_map` (`asset_id`, `rule_id`) VALUES'
                                . ' ('
                                .    (int) $this->_asset_id
                                .                           ', '
                                .                                (int) $this->_rule_id
                                .                                                      ')');
                        $db->query();
                        // Check for a database error.
                        if ($db->getErrorNum()) {
                                $this->setError($db->getErrorMsg());
                                return FALSE;
                              }


Clone AbstractionParameter Count: 2Parameter Bindings

// Map the assetgroup to the rule.
$db->setQuery( [[#variable23e6f9e0]]
              . ' ('
              . (int) $this-> [[#variable23e6f9a0]]
              . ', '
              . (int) $this->_rule_id
              . ')');
$db->query();
// Check for a database error.
if ($db->getErrorNum()) {
  $this->setError($db->getErrorMsg());
  return FALSE;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#23e6f9e0]]
'REPLACE INTO `#__access_assetgroup_rule_map` (`group_id`, `rule_id`) VALUES' 
12[[#23e6f9e0]]
'REPLACE INTO `#__access_asset_rule_map` (`asset_id`, `rule_id`) VALUES' 
21[[#23e6f9a0]]
_asset_group_id 
22[[#23e6f9a0]]
_asset_id