Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 2 | 0.963 | if_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 202 | components/com_content/views/category/view.html.php |
2 | 10 | 269 | components/com_content/views/category/view.html.php |
| ||||
// checks if the item is a public or registered/special item if (in_array($item->access ,$groups)) { $item->link = JRoute::_(ContentHelperRoute::getArticleRoute($item->slug ,$item->catslug)); $item->readmore_register = FALSE; } else { $item->link = JRoute::_('index.php?option=com_user&task=register'); $item->readmore_register = TRUE; } |
| ||||
// checks if the item is a public or registered/special item if (in_array($item->access ,$user->authorisedLevels())) { //$item->readmore_link = JRoute::_('index.php?view=article&catid='.$this->category->slug.'&id='.$item->slug); $item->readmore_link = JRoute::_(ContentHelperRoute::getArticleRoute($item->slug ,$item->catslug)); $item->readmore_register = FALSE; } else { $item->readmore_link = JRoute::_("index.php?option=com_user&task=register"); $item->readmore_register = TRUE; } |
| |||
// checks if the item is a public or registered/special item if (in_array($item->access , [[#variable3c3b5a20]])) { //$item->readmore_link = JRoute::_('index.php?view=article&catid='.$this->category->slug.'&id='.$item->slug); $item-> [[#variable3c3b5a40]]=JRoute::_(ContentHelperRoute::getArticleRoute($item->slug ,$item->catslug)); $item->readmore_register =FALSE; } else { $item-> [[#variable3c3b5a40]]=JRoute::_('index.php?option=com_user&task=register'); $item->readmore_register =TRUE; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3c3b5a20]] | $groups |
1 | 2 | [[#3c3b5a20]] | $user->authorisedLevels() |
2 | 1 | [[#3c3b5a40]] | link |
2 | 2 | [[#3c3b5a40]] | readmore_link |