Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 1 | 0.977 | if_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 146 | components/com_content/models/article.php |
2 | 5 | 225 | components/com_content/models/frontpage.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)); } |
| ||||
// 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)); } |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5509c700]] | $item |
1 | 2 | [[#5509c700]] | $data |