CloneSet648


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6240.969if_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1637
administrator/components/com_users/models/user.php
2746
administrator/components/com_weblinks/models/weblink.php
Clone Instance
1
Line Count
6
Source Line
37
Source File
administrator/components/com_users/models/user.php

                // Load the User state.
                if (JRequest::getWord('layout') === 'edit') {
                        $user_id=  (int) $app->getUserState('com_users.edit.user.id');
                        $this->setState('user.id', $user_id);
                      }
                else   {
                        $user_id=  (int) JRequest::getInt('user_id');
                        $this->setState('user.id', $user_id);
                      }


Clone Instance
2
Line Count
7
Source Line
46
Source File
administrator/components/com_weblinks/models/weblink.php

                // Load the User state.
                if (JRequest::getWord('layout') === 'edit') {
                        $weblinkId=  (int) $app->getUserState('com_weblinks.edit.weblink.id');
                        $this->setState('weblink.id', $weblinkId);
                      }
                else {
                        $weblinkId=  (int) JRequest::getInt('weblink_id');
                        $this->setState('weblink.id', $weblinkId);
                      }


Clone AbstractionParameter Count: 4Parameter Bindings

// Load the User state.
if (JRequest::getWord('layout') === 'edit') {
   [[#variable3ec08160]]= (int) $app->getUserState( [[#variable3ec08100]]);
  $this->setState( [[#variable3ec080a0]], [[#variable3ec08160]]);
}
else {
   [[#variable3ec08160]]= (int) JRequest::getInt( [[#variable3ec08040]]);
  $this->setState( [[#variable3ec080a0]], [[#variable3ec08160]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3ec08160]]
$user_id 
12[[#3ec08160]]
$weblinkId 
21[[#3ec08100]]
'com_users.edit.user.id' 
22[[#3ec08100]]
'com_weblinks.edit.weblink.id' 
31[[#3ec080a0]]
'user.id' 
32[[#3ec080a0]]
'weblink.id' 
41[[#3ec08040]]
'user_id' 
42[[#3ec08040]]
'weblink_id'