CloneSet392


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25220.975statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
125367
components/com_users/models/user.php
225431
components/com_users/models/user.php
Clone Instance
1
Line Count
25
Source Line
367
Source File
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();


Clone Instance
2
Line Count
25
Source Line
431
Source File
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;
                      }

                // Get the token and user id from the confirmation process.
                $app=     &JFactory::getApplication();


Clone AbstractionParameter Count: 2Parameter Bindings

// 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#524a93c0]]
// Get the token and user id from the confirmation process.
$app 
12[[#524a93c0]]
// Find the user id for the given token.
$query 
21[[#3df3cd20]]
&JFactory::getApplication() 
22[[#3df3cd20]]
new JQuery()