CloneSet214


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24220.997statement_sequence[10]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
124233
components/com_users/models/user.php
224335
components/com_users/models/user.php
Clone Instance
1
Line Count
24
Source Line
233
Source File
components/com_users/models/user.php

                // Load the mail template.
                jimport('joomla.utilities.simpletemplate');
                $template=  new JSimpleTemplate();

                if (!$template->load('users.username.remind.request')) {
                        return new JException(JText::_('USERS_REMIND_MAIL_TEMPLATE_NOT_FOUND'), 500);
                      }

                // Push in the email template variables.
                $template->bind($data);

                // Get the email information.
                $toEmail=         $user->email;
                $subject=         $template->getTitle();
                $message=         $template->getHtml();

                // Send the password reset request e-mail.
                $return=  JUtility::sendMail($data['mailfrom'], $data['fromname'], $toEmail, $subject, $message);

                // Check for an error.
                if ($return !== TRUE) {
                        return new JException(JText::_('USERS_MAIL_FAILED'), 500);
                      }

                return TRUE;


Clone Instance
2
Line Count
24
Source Line
335
Source File
components/com_users/models/user.php

                // Load the mail template.
                jimport('joomla.utilities.simpletemplate');
                $template=  new JSimpleTemplate();

                if (!$template->load('users.password.reset.request')) {
                        return new JException(JText::_('USERS_RESET_MAIL_TEMPLATE_NOT_FOUND'), 500);
                      }

                // Push in the email template variables.
                $template->bind($data);

                // Get the email information.
                $toEmail=         $user->email;
                $subject=         $template->getTitle();
                $message=         $template->getHtml();

                // Send the password reset request e-mail.
                $return=  JUtility::sendMail($data['mailfrom'], $data['fromname'], $toEmail, $subject, $message);

                // Check for an error.
                if ($return !== TRUE) {
                        return new JException(JText::_('USERS_MAIL_FAILED'), 500);
                      }

                return TRUE;


Clone AbstractionParameter Count: 2Parameter Bindings

// Load the mail template.
jimport('joomla.utilities.simpletemplate');
$template=new JSimpleTemplate();
if (!$template->load( [[#variable3dd0bde0]])) {
  return new JException(JText::_( [[#variable3dd0bce0]]),500);
}
// Push in the email template variables.
$template->bind($data);
// Get the email information.
$toEmail=$user->email;
$subject=$template->getTitle();
$message=$template->getHtml();
// Send the password reset request e-mail.
$return=JUtility::sendMail($data['mailfrom'],$data['fromname'],$toEmail,$subject,$message);
// Check for an error.
if ($return !== TRUE) {
  return new JException(JText::_('USERS_MAIL_FAILED'),500);
}
return TRUE;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3dd0bde0]]
'users.username.remind.request' 
12[[#3dd0bde0]]
'users.password.reset.request' 
21[[#3dd0bce0]]
'USERS_REMIND_MAIL_TEMPLATE_NOT_FOUND' 
22[[#3dd0bce0]]
'USERS_RESET_MAIL_TEMPLATE_NOT_FOUND'