CloneSet257


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17210.998statement_sequence[11]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11749
administrator/components/com_content/elements/author.php
217206
administrator/components/com_messages/admin.messages.php
Clone Instance
1
Line Count
17
Source Line
49
Source File
administrator/components/com_content/elements/author.php

                // Build the query to get the users.
                $query=  new JQuery();
                $query->select('u.id AS value');
                $query->select('u.name AS text');
                $query->from('#__users AS u');
                $query->join('INNER', '#__user_usergroup_map AS m ON m.user_id = u.id');
                $query->where('u.block = 0');
                $query->where('m.group_id IN ('
                              .                 $groups
                              .                         ')');
                // Get the users.
                $db=  &JFactory::getDbo();
                $db->setQuery($query->toString());
                $users=  $db->loadObjectList();
                // Check for a database error.
                if ($db->getErrorNum()) {
                        JError::raiseNotice(500, $db->getErrorMsg());
                        return FALSE;
                      }


Clone Instance
2
Line Count
17
Source Line
206
Source File
administrator/components/com_messages/admin.messages.php

        // Build the query to get the users.
        $query=  new JQuery();
        $query->select('u.id AS value');
        $query->select('u.name AS text');
        $query->from('#__users AS u');
        $query->join('INNER', '#__user_usergroup_map AS m ON m.user_id = u.id');
        $query->where('u.block = 0');
        $query->where('m.group_id IN ('
                      .                 $groups
                      .                         ')');
        // Get the users.
        $db=  &JFactory::getDBO();
        $db->setQuery($query->toString());
        $users=  $db->loadObjectList();
        // Check for a database error.
        if ($db->getErrorNum()) {
                JError::raiseNotice(500, $db->getErrorMsg());
                return FALSE;
              }


Clone AbstractionParameter Count: 1Parameter Bindings

// Build the query to get the users.
$query=new JQuery();
$query->select('u.id AS value');
$query->select('u.name AS text');
$query->from('#__users AS u');
$query->join('INNER','#__user_usergroup_map AS m ON m.user_id = u.id');
$query->where('u.block = 0');
$query->where('m.group_id IN ('
              . $groups
              . ')');
// Get the users.
$db= &JFactory:: [[#variable4c831520]]();
$db->setQuery($query->toString());
$users=$db->loadObjectList();
// Check for a database error.
if ($db->getErrorNum()) {
  JError::raiseNotice(500,$db->getErrorMsg());
  return FALSE;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4c831520]]
getDbo 
12[[#4c831520]]
getDBO