Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 2 | 0.955 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 190 | administrator/components/com_users/models/user.php |
2 | 17 | 222 | 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; } |
| ||||
$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; } |
| |||
$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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4c769100]] | !$userId |
1 | 2 | [[#4c769100]] | $userId === -1 |
2 | 1 | [[#5133f180]] | checkin |
2 | 2 | [[#5133f180]] | checkout |