CloneSet557


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5210.977if_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15146
components/com_content/models/article.php
25225
components/com_content/models/frontpage.php
Clone Instance
1
Line Count
5
Source Line
146
Source File
components/com_content/models/article.php

                                        if ($data->catid == 0
                                            ||                   $data->category_access === NULL) {
                                                $data->params->set('access-view', in_array($data->access ,$groups));
                                              }
                                        else {
                                                $data->params->set('access-view', in_array($data->access ,$groups)
                                                                                  &&                                  in_array($data->category_access ,$groups));
                                              }


Clone Instance
2
Line Count
5
Source Line
225
Source File
components/com_content/models/frontpage.php

                                // If no access filter is set, the layout takes some responsibility for display of limited information.
                                if ($item->catid == 0
                                    ||                   $item->category_access === NULL) {
                                        $item->params->set('access-view', in_array($item->access ,$groups));
                                      }
                                else {
                                        $item->params->set('access-view', in_array($item->access ,$groups)
                                                                          &&                                  in_array($item->category_access ,$groups));
                                      }


Clone AbstractionParameter Count: 1Parameter Bindings

// If no access filter is set, the layout takes some responsibility for display of limited information.
if ( [[#variable5509c700]]->catid == 0
    || [[#variable5509c700]]->category_access === NULL) {
   [[#variable5509c700]]->params->set('access-view',in_array( [[#variable5509c700]]->access ,$groups));
}
else {
   [[#variable5509c700]]->params->set('access-view',in_array( [[#variable5509c700]]->access ,$groups)
                                                    && in_array( [[#variable5509c700]]->category_access ,$groups));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5509c700]]
$item 
12[[#5509c700]]
$data