CloneSet501


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16220.955statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116190
administrator/components/com_users/models/user.php
217222
administrator/components/com_users/models/user.php
Clone Instance
1
Line Count
16
Source Line
190
Source File
administrator/components/com_users/models/user.php

                $user_id=         (int) $user->get('id');

                if (!$userId) {
                        return TRUE;
                      }

                // Get a JTableUser instance.
                $user=  &JTable::getInstance('User', 'JTable');

                // Attempt to check-in the row.
                $return=  $user->checkin($user_id, $userId);

                // Check for a database error.
                if ($return === FALSE) {
                        $this->setError($user->getError());
                        return FALSE;
                      }


Clone Instance
2
Line Count
17
Source Line
222
Source File
administrator/components/com_users/models/user.php

                $user_id=         (int) $user->get('id');

                // Check for a new User id.
                if ($userId === -1) {
                        return TRUE;
                      }

                // Get a JTableUser instance.
                $user=  &JTable::getInstance('User', 'JTable');

                // Attempt to check-out the row.
                $return=  $user->checkout($user_id, $userId);

                // Check for a database error.
                if ($return === FALSE) {
                        $this->setError($user->getError());
                        return FALSE;
                      }


Clone AbstractionParameter Count: 2Parameter Bindings

$user_id= (int) $user->get('id');
// Check for a new User id.
if ( [[#variable4c769100]]) {
  return TRUE;
}
// Get a JTableUser instance.
$user= &JTable::getInstance('User','JTable');
// Attempt to check-in the row.
// Attempt to check-out the row.
$return=$user-> [[#variable5133f180]]($user_id,$userId);
// Check for a database error.
if ($return === FALSE) {
  $this->setError($user->getError());
  return FALSE;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4c769100]]
!$userId 
12[[#4c769100]]
$userId === -1 
21[[#5133f180]]
checkin 
22[[#5133f180]]
checkout