CloneSet339


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12401.000statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112557
libraries/joomla/access/permission/accesslevel.php
212640
libraries/joomla/access/permission/accesslevel.php
312520
libraries/joomla/access/permission/simplerule.php
412603
libraries/joomla/access/permission/simplerule.php
Clone Instance
1
Line Count
12
Source Line
557
Source File
libraries/joomla/access/permission/accesslevel.php

                $db->setQuery(
                        'SELECT `id`'
                        . ' FROM `#__access_rules`'
                        . ' WHERE `name` = '
                        .                  $db->Quote($this->_rule_name)
                        . ' AND `section_id` = '
                        .                      (int) $this->_section_id);
                $ruleId=  (int) $db->loadResult();
                // Check for a database error.
                if ($db->getErrorNum()) {
                        $this->setError($db->getErrorMsg());
                        return FALSE;
                      }


Clone Instance
2
Line Count
12
Source Line
640
Source File
libraries/joomla/access/permission/accesslevel.php

                $db->setQuery(
                        'SELECT `id`'
                        . ' FROM `#__access_rules`'
                        . ' WHERE `name` = '
                        .                  $db->Quote($this->_rule_name)
                        . ' AND `section_id` = '
                        .                      (int) $this->_section_id);
                $ruleId=  (int) $db->loadResult();
                // Check for a database error.
                if ($db->getErrorNum()) {
                        $this->setError($db->getErrorMsg());
                        return FALSE;
                      }


Clone Instance
3
Line Count
12
Source Line
520
Source File
libraries/joomla/access/permission/simplerule.php

                // Attempt to load the rule id.
                $db->setQuery(
                        'SELECT `id`'
                        . ' FROM `#__access_rules`'
                        . ' WHERE `name` = '
                        .                  $db->Quote($this->_rule_name)
                        . ' AND `section_id` = '
                        .                      (int) $this->_section_id);
                $ruleId=  (int) $db->loadResult();
                // Check for a database error.
                if ($db->getErrorNum()) {
                        $this->setError($db->getErrorMsg());
                        return FALSE;
                      }


Clone Instance
4
Line Count
12
Source Line
603
Source File
libraries/joomla/access/permission/simplerule.php

                $db->setQuery(
                        'SELECT `id`'
                        . ' FROM `#__access_rules`'
                        . ' WHERE `name` = '
                        .                  $db->Quote($this->_rule_name)
                        . ' AND `section_id` = '
                        .                      (int) $this->_section_id);
                $ruleId=  (int) $db->loadResult();
                // Check for a database error.
                if ($db->getErrorNum()) {
                        $this->setError($db->getErrorMsg());
                        return FALSE;
                      }


Clone AbstractionParameter Count: 0Parameter Bindings

// Attempt to load the rule id.
$db->setQuery('SELECT `id`'
              . ' FROM `#__access_rules`'
              . ' WHERE `name` = '
              . $db->Quote($this->_rule_name)
              . ' AND `section_id` = '
              . (int) $this->_section_id);
$ruleId= (int) $db->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
  $this->setError($db->getErrorMsg());
  return FALSE;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None