| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 15 | 4 | 4 | 0.989 | statement_sequence[4] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 15 | 132 | administrator/components/com_categories/models/categories.php |
| 2 | 15 | 127 | administrator/components/com_content/models/articles.php |
| 3 | 15 | 63 | administrator/components/com_content/models/featured.php |
| 4 | 15 | 131 | administrator/components/com_weblinks/models/weblinks.php |
| ||||
// Filter by access level.
if ($access= $this->getState('filter.access')) {
$query->where('a.access = '
. (int) $access);
}
// Filter by published state
$published= $this->getState('filter.published');
if (is_numeric($published)) {
$query->where('a.published = '
. (int) $published);
}
else if ($published === '') {
$query->where('(a.published IN (0, 1))');
}
// Filter by search in title
$search= $this->getState('filter.search');
|
| ||||
// Filter by access level.
if ($access= $this->getState('filter.access')) {
$query->where('a.access = '
. (int) $access);
}
// Filter by published state
$published= $this->getState('filter.published');
if (is_numeric($published)) {
$query->where('a.state = '
. (int) $published);
}
else if ($published === '') {
$query->where('(a.state = 0 OR a.state = 1)');
}
// Filter by category.
$categoryId= $this->getState('filter.category_id');
|
| ||||
// Filter by access level.
if ($access= $this->getState('filter.access')) {
$query->where('a.access = '
. (int) $access);
}
// Filter by published state
$published= $this->getState('filter.published');
if (is_numeric($published)) {
$query->where('a.state = '
. (int) $published);
}
else if ($published === '') {
$query->where('(a.state = 0 OR a.state = 1)');
}
// Filter by search in title
$search= $this->getState('filter.search');
|
| ||||
// Filter on the access level.
if ($access= $this->getState('filter.access')) {
$query->where('a.access = '
. (int) $access);
}
// Filter on the published state.
$published= $this->getState('filter.published');
if (is_numeric($published)) {
$query->where('a.state = '
. (int) $published);
}
else if ($published === '') {
$query->where('(a.state IN (0, 1))');
}
// Filter by category
$categoryId= $this->getState('filter.category_id');
|
| |||
// Filter on the access level.
// Filter by access level.
if ($access=$this->getState('filter.access')) {
$query->where('a.access = '
. (int) $access);
}
// Filter on the published state.
// Filter by published state
$published=$this->getState('filter.published');
if (is_numeric($published)) {
$query->where( [[#variable4c7ff0e0]]
. (int) $published);
}
else if ($published === '') {
$query->where( [[#variable4cf0a820]]);
}
[[#variable4c7ff140]]=$this->getState( [[#variable51f5ae60]]);
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#4c7ff0e0]] | 'a.state = ' |
| 1 | 2 | [[#4c7ff0e0]] | 'a.state = ' |
| 1 | 3 | [[#4c7ff0e0]] | 'a.state = ' |
| 1 | 4 | [[#4c7ff0e0]] | 'a.published = ' |
| 2 | 1 | [[#4cf0a820]] | '(a.state IN (0, 1))' |
| 2 | 2 | [[#4cf0a820]] | '(a.state = 0 OR a.state = 1)' |
| 2 | 3 | [[#4cf0a820]] | '(a.state = 0 OR a.state = 1)' |
| 2 | 4 | [[#4cf0a820]] | '(a.published IN (0, 1))' |
| 3 | 1 | [[#4c7ff140]] | // Filter by category $categoryId |
| 3 | 2 | [[#4c7ff140]] | // Filter by search in title $search |
| 3 | 3 | [[#4c7ff140]] | // Filter by category. $categoryId |
| 3 | 4 | [[#4c7ff140]] | // Filter by search in title $search |
| 4 | 1 | [[#51f5ae60]] | 'filter.category_id' |
| 4 | 2 | [[#51f5ae60]] | 'filter.search' |
| 4 | 3 | [[#51f5ae60]] | 'filter.category_id' |
| 4 | 4 | [[#51f5ae60]] | 'filter.search' |