Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 4 | 0.969 | if_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 37 | administrator/components/com_users/models/user.php |
2 | 7 | 46 | administrator/components/com_weblinks/models/weblink.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); } |
| ||||
// 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); } |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3ec08160]] | $user_id |
1 | 2 | [[#3ec08160]] | $weblinkId |
2 | 1 | [[#3ec08100]] | 'com_users.edit.user.id' |
2 | 2 | [[#3ec08100]] | 'com_weblinks.edit.weblink.id' |
3 | 1 | [[#3ec080a0]] | 'user.id' |
3 | 2 | [[#3ec080a0]] | 'weblink.id' |
4 | 1 | [[#3ec08040]] | 'user_id' |
4 | 2 | [[#3ec08040]] | 'weblink_id' |