CloneSet300


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16201.000class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11627
components/com_users/models/profile.php
21627
components/com_users/models/user.php
Clone Instance
1
Line Count
16
Source Line
27
Source File
components/com_users/models/profile.php

        /**
         */
        function _populateState($property=  NULL, $default=  NULL) {

                // Get the application object.
                $app=     &JFactory::getApplication();
                $user=    &JFactory::getUser();
                $params=  &$app->getParams('com_users');

                // Get the member id.
                $memberId=  JRequest::getInt('member_id', $app->getUserState('com_users.edit.profile.id'));
                $memberId=  !empty($memberId)
                            ?                   $memberId
                            :                               (int) $user->get('id');
                // Set the member id.
                $this->setState('member.id', $memberId);
                // Load the parameters.
                $this->setState('params', $params);
              }


Clone Instance
2
Line Count
16
Source Line
27
Source File
components/com_users/models/user.php

        /**
         */
        function _populateState($property=  NULL, $default=  NULL) {

                // Get the application object.
                $app=     &JFactory::getApplication();
                $user=    &JFactory::getUser();
                $params=  &$app->getParams('com_users');

                // Get the member id.
                $memberId=  JRequest::getInt('member_id', $app->getUserState('com_users.edit.profile.id'));
                $memberId=  !empty($memberId)
                            ?                   $memberId
                            :                               (int) $user->get('id');
                // Set the member id.
                $this->setState('member.id', $memberId);
                // Load the parameters.
                $this->setState('params', $params);
              }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         */
function _populateState($property=NULL,$default=NULL) {
  // Get the application object.
  $app= &JFactory::getApplication();
  $user= &JFactory::getUser();
  $params= &$app->getParams('com_users');
  // Get the member id.
  $memberId=JRequest::getInt('member_id',$app->getUserState('com_users.edit.profile.id'));
  $memberId=!empty($memberId)
            ? $memberId
            : (int) $user->get('id');
  // Set the member id.
  $this->setState('member.id',$memberId);
  // Load the parameters.
  $this->setState('params',$params);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None