Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 2 | 0.995 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 54 | administrator/components/com_installer/models/languages.php |
2 | 10 | 66 | administrator/components/com_installer/models/languages.php |
| ||||
// Get the site languages $langBDir= JLanguage::getLanguagePath(JPATH_SITE); $langDirs= JFolder::folders($langBDir); for ($i=0; $i< count($langDirs); $i ++) { $lang= new stdClass(); $lang->folder = $langDirs[$i]; $lang->client = 0; $lang->baseDir = $langBDir; $languages[]= $lang; } |
| ||||
// Get the admin languages $langBDir= JLanguage::getLanguagePath(JPATH_ADMINISTRATOR); $langDirs= JFolder::folders($langBDir); for ($i=0; $i< count($langDirs); $i ++) { $lang= new stdClass(); $lang->folder = $langDirs[$i]; $lang->client = 1; $lang->baseDir = $langBDir; $languages[]= $lang; } |
| |||
// Get the admin languages // Get the site languages $langBDir=JLanguage::getLanguagePath( [[#variable5854bda0]]); $langDirs=JFolder::folders($langBDir); for ($i=0; $i<count($langDirs); $i ++) { $lang=new stdClass(); $lang->folder =$langDirs[$i]; $lang->client = [[#variable3f9dda20]]; $lang->baseDir =$langBDir; $languages[]=$lang; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5854bda0]] | JPATH_ADMINISTRATOR |
1 | 2 | [[#5854bda0]] | JPATH_SITE |
2 | 1 | [[#3f9dda20]] | 1 |
2 | 2 | [[#3f9dda20]] | 0 |