Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 2 | 0.982 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 41 | installation/models/fields/language.php |
2 | 13 | 137 | installation/models/setup.php |
| ||||
$native= JLanguageHelper::detectLanguage(); // Get a forced language if it exists. $forced= $app->getLocalise(); if (!empty($forced['lang'])) { $native= $forced['lang']; } // Get the list of available languages. $options= JLanguageHelper::createLanguageList($native); if (!$options || JError::isError($options)) { $options= array(); } |
| ||||
$native= JLanguageHelper::detectLanguage(); // Get a forced language if it exists. $forced= $app->getLocalise(); if (!empty($forced['language'])) { $native= $forced['language']; } // Get the list of available languages. $list= JLanguageHelper::createLanguageList($native); if (!$list || JError::isError($list)) { $list= array(); } |
| |||
$native=JLanguageHelper::detectLanguage(); // Get a forced language if it exists. $forced=$app->getLocalise(); if (!empty($forced[ [[#variable407242c0]]])) { $native=$forced[ [[#variable407242c0]]]; } [[#variable40724240]]=JLanguageHelper::createLanguageList($native); if (! [[#variable40724240]] || JError::isError( [[#variable40724240]])) { [[#variable40724240]]=array(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#407242c0]] | 'language' |
1 | 2 | [[#407242c0]] | 'lang' |
2 | 1 | [[#40724240]] | // Get the list of available languages. $list |
2 | 2 | [[#40724240]] | // Get the list of available languages. $options |