| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 15 | 2 | 4 | 0.952 | statement_sequence[9] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 15 | 63 | components/com_contact/views/category/view.feed.php |
| 2 | 15 | 47 | components/com_weblinks/views/category/view.feed.php |
| ||||
$title= html_entity_decode($title);
// url link to article
$link= JRoute::_('index.php?option=com_contact&view=contact&id='
. $row->slug
. '&catid='
. $row->catslug);
// strip html from feed item description text
$description= $row->description;
$date= ($row->date
? date('r', strtotime($row->date))
: '');
// load individual item creator class
$item= new JFeedItem();
$item->title = $title;
$item->link = $link;
$item->description = $description;
$item->date = $date;
|
| ||||
$title= html_entity_decode($title);
// url link to article
$link= JRoute::_('index.php?option=com_weblinks&view=weblink&id='
. $item->id);
// strip html from feed item description text
$description= $item->description;
$date= ($item->date
? date('r', strtotime($item->date))
: '');
// load individual item creator class
$feeditem= new JFeedItem();
$feeditem->title = $title;
$feeditem->link = $link;
$feeditem->description = $description;
$feeditem->date = $date;
|
| |||
$title=html_entity_decode($title);
// url link to article
$link=JRoute::_( [[#variable5123e0a0]]
. [[#variable5007bfc0]]-> [[#variable21f19d20]]);
// strip html from feed item description text
$description= [[#variable5007bfc0]]->description;
$date=( [[#variable5007bfc0]]->date
? date('r',strtotime( [[#variable5007bfc0]]->date))
: '');
[[#variable5123e020]]=new JFeedItem();
[[#variable5123e020]]->title =$title;
[[#variable5123e020]]->link =$link;
[[#variable5123e020]]->description =$description;
[[#variable5123e020]]->date =$date;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5123e0a0]] | 'index.php?option=com_weblinks&view=weblink&id=' |
| 1 | 2 | [[#5123e0a0]] | 'index.php?option=com_contact&view=contact&id=' . $row->slug . '&catid=' |
| 2 | 1 | [[#5007bfc0]] | $item |
| 2 | 2 | [[#5007bfc0]] | $row |
| 3 | 1 | [[#21f19d20]] | id |
| 3 | 2 | [[#21f19d20]] | catslug |
| 4 | 1 | [[#5123e020]] | // load individual item creator class $feeditem |
| 4 | 2 | [[#5123e020]] | // load individual item creator class $item |