Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 2 | 0.992 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 142 | components/com_content/models/categories.php |
2 | 8 | 163 | components/com_content/models/frontpage.php |
| ||||
// Filter by published state $published= $this->getState('filter.published'); if (is_numeric($published)) { $query->where('a.published = ' . (int) $published); } else if (is_array($published)) { JArrayHelper::toInteger($published); $query->where('a.published IN (' . $published . ')'); } |
| ||||
// Filter by published state. $published= $this->getState('filter.published'); if (is_numeric($published)) { $query->where('a.state = ' . (int) $published); } else if (is_array($published)) { JArrayHelper::toInteger($published); $query->where('a.state IN (' . $published . ')'); } |
| |||
// Filter by published state. // Filter by published state $published=$this->getState('filter.published'); if (is_numeric($published)) { $query->where( [[#variable22eedf60]] . (int) $published); } else if (is_array($published)) { JArrayHelper::toInteger($published); $query->where( [[#variable22eedf20]] . $published . ')'); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#22eedf60]] | 'a.state = ' |
1 | 2 | [[#22eedf60]] | 'a.published = ' |
2 | 1 | [[#22eedf20]] | 'a.state IN (' |
2 | 2 | [[#22eedf20]] | 'a.published IN (' |