Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 0 | 1.000 | if_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 147 | administrator/components/com_categories/models/categories.php |
2 | 13 | 148 | administrator/components/com_content/models/articles.php |
| ||||
if (!empty($search)) { if (stripos($search, 'id:') === 0) { $query->where('a.id = ' . (int) substr($search, 3)); } else if (stripos($search, 'author:') === 0) { $search= $this->_db->Quote('%' . $this->_db->getEscaped(substr($search, 7), TRUE) . '%'); $query->where('ua.name LIKE ' . $search . ' OR ua.username LIKE ' . $search); } else { $search= $this->_db->Quote('%' . $this->_db->getEscaped($search, TRUE) . '%'); $query->where('a.title LIKE ' . $search . ' OR a.alias LIKE ' . $search); } } |
| ||||
if (!empty($search)) { if (stripos($search, 'id:') === 0) { $query->where('a.id = ' . (int) substr($search, 3)); } else if (stripos($search, 'author:') === 0) { $search= $this->_db->Quote('%' . $this->_db->getEscaped(substr($search, 7), TRUE) . '%'); $query->where('ua.name LIKE ' . $search . ' OR ua.username LIKE ' . $search); } else { $search= $this->_db->Quote('%' . $this->_db->getEscaped($search, TRUE) . '%'); $query->where('a.title LIKE ' . $search . ' OR a.alias LIKE ' . $search); } } |
| |||
if (!empty($search)) { if (stripos($search,'id:') === 0) { $query->where('a.id = ' . (int) substr($search,3)); } else if (stripos($search,'author:') === 0) { $search=$this->_db->Quote('%' . $this->_db->getEscaped(substr($search,7),TRUE) . '%'); $query->where('ua.name LIKE ' . $search . ' OR ua.username LIKE ' . $search); } else { $search=$this->_db->Quote('%' . $this->_db->getEscaped($search,TRUE) . '%'); $query->where('a.title LIKE ' . $search . ' OR a.alias LIKE ' . $search); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |