CloneSet574


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.963if_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19202
components/com_content/views/category/view.html.php
210269
components/com_content/views/category/view.html.php
Clone Instance
1
Line Count
9
Source Line
202
Source File
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;
                              }


Clone Instance
2
Line Count
10
Source Line
269
Source File
components/com_content/views/category/view.html.php

                        // 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;
                              }


Clone AbstractionParameter Count: 2Parameter Bindings

// 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3c3b5a20]]
$groups 
12[[#3c3b5a20]]
$user->authorisedLevels() 
21[[#3c3b5a40]]
link 
22[[#3c3b5a40]]
readmore_link