| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 12 | 3 | 2 | 0.976 | for_statement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 12 | 56 | administrator/components/com_installer/models/templates.php |
| 2 | 12 | 73 | administrator/components/com_installer/models/templates.php |
| 3 | 12 | 92 | administrator/components/com_installer/models/templates.php |
| ||||
for ($i=0; $i< count($templateDirs); $i ++) {
$template= new stdClass();
$template->folder = $templateDirs[$i];
$template->client = 0;
$template->baseDir = JPATH_SITE
. DS
. 'templates';
if ($this->_state->get('filter.string')) {
if (strpos($template->folder ,$this->_state->get('filter.string')) !== FALSE) {
$templates[]= $template;
}
}
else {
$templates[]= $template;
}
}
|
| ||||
for ($i=0; $i< count($templateDirs); $i ++) {
$template= new stdClass();
$template->folder = $templateDirs[$i];
$template->client = 1;
$template->baseDir = JPATH_ADMINISTRATOR
. DS
. 'templates';
if ($this->_state->get('filter.string')) {
if (strpos($template->folder ,$this->_state->get('filter.string')) !== FALSE) {
$templates[]= $template;
}
}
else {
$templates[]= $template;
}
}
|
| ||||
for ($i=0; $i< count($templateDirs); $i ++) {
$template= new stdClass();
$template->folder = $templateDirs[$i];
$template->client = $clientInfo->id;
$template->baseDir = $clientInfo->path
. DS
. 'templates';
if ($this->_state->get('filter.string')) {
if (strpos($template->folder ,$this->_state->get('filter.string')) !== FALSE) {
$templates[]= $template;
}
}
else {
$templates[]= $template;
}
}
|
| |||
for ($i=0; $i<count($templateDirs); $i ++) {
$template=new stdClass();
$template->folder =$templateDirs[$i];
$template->client = [[#variable55a5f160]];
$template->baseDir = [[#variable550735c0]]
. DS
. 'templates';
if ($this->_state->get('filter.string')) {
if (strpos($template->folder ,$this->_state->get('filter.string')) !== FALSE) {
$templates[]=$template;
}
}
else {
$templates[]=$template;
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#55a5f160]] | 0 |
| 1 | 2 | [[#55a5f160]] | $clientInfo->id |
| 1 | 3 | [[#55a5f160]] | 1 |
| 2 | 1 | [[#550735c0]] | JPATH_SITE |
| 2 | 2 | [[#550735c0]] | $clientInfo->path |
| 2 | 3 | [[#550735c0]] | JPATH_ADMINISTRATOR |