Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
25 | 2 | 2 | 0.975 | statement_sequence[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 25 | 367 | components/com_users/models/user.php |
2 | 25 | 431 | components/com_users/models/user.php |
| ||||
// Check for an error. if (JError::isError($form)) { return $form; } // Filter and validate the form data. $data= $form->filter($data); $return= $form->validate($data); // Check for an error. if (JError::isError($return)) { return $return; } // Check the validation results. if ($return === FALSE) { // Get the validation messages from the form. foreach ($form->getErrors() as $message) { $this->setError($message); } return FALSE; } // Find the user id for the given token. $query= new JQuery(); |
| ||||
// Check for an error. if (JError::isError($form)) { return $form; } // Filter and validate the form data. $data= $form->filter($data); $return= $form->validate($data); // Check for an error. if (JError::isError($return)) { return $return; } // Check the validation results. if ($return === FALSE) { // Get the validation messages from the form. foreach ($form->getErrors() as $message) { $this->setError($message); } return FALSE; } // Get the token and user id from the confirmation process. $app= &JFactory::getApplication(); |
| |||
// Check for an error. if (JError::isError($form)) { return $form; } // Filter and validate the form data. $data=$form->filter($data); $return=$form->validate($data); // Check for an error. if (JError::isError($return)) { return $return; } // Check the validation results. if ($return === FALSE) { // Get the validation messages from the form. foreach ($form->getErrors() as $message) { $this->setError($message); } return FALSE; } [[#variable524a93c0]]= [[#variable3df3cd20]]; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#524a93c0]] | // Get the token and user id from the confirmation process. $app |
1 | 2 | [[#524a93c0]] | // Find the user id for the given token. $query |
2 | 1 | [[#3df3cd20]] | &JFactory::getApplication() |
2 | 2 | [[#3df3cd20]] | new JQuery() |