CloneSet193


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18440.976statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118349
libraries/joomla/access/permission/accesslevel.php
218400
libraries/joomla/access/permission/accesslevel.php
318297
libraries/joomla/access/permission/simplerule.php
418348
libraries/joomla/access/permission/simplerule.php
Clone Instance
1
Line Count
18
Source Line
349
Source File
libraries/joomla/access/permission/accesslevel.php

                // Implode the group ids.
                $ids=  implode(',', $groups);

                // Get the group ids that exist in the database.
                $db=  &$this-> getDbo();
                $db->setQuery(
                        'SELECT `id`'
                        . ' FROM `#__usergroups`'
                        . ' WHERE `id` IN ('
                        .                  $ids
                        .                       ')');
                $actualGroups=  (array) $db->loadResultArray();
                // Get the groups that are actually available in the database.
                $groups=  array_intersect($groups, $actualGroups);

                // Set the new user groups.
                $this->_user_groups = $groups;

                return $old;


Clone Instance
2
Line Count
18
Source Line
400
Source File
libraries/joomla/access/permission/accesslevel.php

                // Implode the user ids.
                $ids=  implode(',', $users);

                // Get the user ids that exist in the database.
                $db=  &$this-> getDbo();
                $db->setQuery(
                        'SELECT `id`'
                        . ' FROM `#__users`'
                        . ' WHERE `id` IN ('
                        .                  $ids
                        .                       ')');
                $actualUsers=  (array) $db->loadResultArray();
                // Get the users that are actually available in the database.
                $users=  array_intersect($users, $actualUsers);

                // Set the new users.
                $this->_users = $users;

                return $old;


Clone Instance
3
Line Count
18
Source Line
297
Source File
libraries/joomla/access/permission/simplerule.php

                // Implode the group ids.
                $ids=  implode(',', $groups);

                // Get the group ids that exist in the database.
                $db=  &$this->getDbo();
                $db->setQuery(
                        'SELECT `id`'
                        . ' FROM `#__usergroups`'
                        . ' WHERE `id` IN ('
                        .                  $ids
                        .                       ')');
                $actualGroups=  (array) $db->loadResultArray();
                // Get the groups that are actually available in the database.
                $groups=  array_intersect($groups, $actualGroups);

                // Set the new user groups.
                $this->_user_groups = $groups;

                return $old;


Clone Instance
4
Line Count
18
Source Line
348
Source File
libraries/joomla/access/permission/simplerule.php

                // Implode the user ids.
                $ids=  implode(',', $users);

                // Get the user ids that exist in the database.
                $db=  &$this-> getDbo();
                $db->setQuery(
                        'SELECT `id`'
                        . ' FROM `#__users`'
                        . ' WHERE `id` IN ('
                        .                  $ids
                        .                       ')');
                $actualUsers=  (array) $db->loadResultArray();
                // Get the users that are actually available in the database.
                $users=  array_intersect($users, $actualUsers);

                // Set the new users.
                $this->_users = $users;

                return $old;


Clone AbstractionParameter Count: 4Parameter Bindings

// Implode the user ids.
// Implode the group ids.
$ids=implode(',', [[#variable587bb3e0]]);
// Get the user ids that exist in the database.
// Get the group ids that exist in the database.
$db= &$this->getDbo();
$db->setQuery('SELECT `id`'
              .  [[#variable587bb3a0]]
              . ' WHERE `id` IN ('
              . $ids
              . ')');
 [[#variable587bb2a0]]= (array) $db->loadResultArray();
 [[#variable587bb3e0]]=array_intersect( [[#variable587bb3e0]], [[#variable587bb2a0]]);
// Set the new users.
// Set the new user groups.
$this-> [[#variable587bb380]]= [[#variable587bb3e0]];
return $old;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#587bb3e0]]
$users 
12[[#587bb3e0]]
$groups 
13[[#587bb3e0]]
$groups 
14[[#587bb3e0]]
$users 
21[[#587bb3a0]]
' FROM `#__users`' 
22[[#587bb3a0]]
' FROM `#__usergroups`' 
23[[#587bb3a0]]
' FROM `#__usergroups`' 
24[[#587bb3a0]]
' FROM `#__users`' 
31[[#587bb2a0]]
$actualUsers 
32[[#587bb2a0]]
$actualGroups 
33[[#587bb2a0]]
$actualGroups 
34[[#587bb2a0]]
$actualUsers 
41[[#587bb380]]
_users 
42[[#587bb380]]
_user_groups 
43[[#587bb380]]
_user_groups 
44[[#587bb380]]
_users