Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 5 | 0.969 | abstract_class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 103 | libraries/joomla/factory.php |
2 | 13 | 227 | libraries/joomla/factory.php |
| ||||
/** * Get a language object * * Returns a reference to the global {@link JLanguage} object, only creating it * if it doesn't already exist. * * @return object JLanguage */ public static function &getLanguage() { if (!is_object(JFactory::$language)) { //get the debug configuration setting $conf= &JFactory::getConfig(); $debug= $conf->getValue('config.debug_lang'); JFactory::$language= JFactory::_createLanguage(); JFactory::$language->setDebug($debug); } return JFactory::$language; } |
| ||||
/** * Get a database object * * Returns a reference to the global {@link JDatabase} object, only creating it * if it doesn't already exist. * * @return object JDatabase */ public static function &getDbo() { if (!is_object(JFactory::$database)) { //get the debug configuration setting $conf= &JFactory::getConfig(); $debug= $conf->getValue('config.debug'); JFactory::$database= JFactory::_createDBO(); JFactory::$database->debug($debug); } return JFactory::$database; } |
| |||
/** * Get a language object * * Returns a reference to the global {@link JLanguage} object, only creating it * if it doesn't already exist. * * @return object JLanguage */ /** * Get a database object * * Returns a reference to the global {@link JDatabase} object, only creating it * if it doesn't already exist. * * @return object JDatabase */ public static function & [[#variable4cb4ee40]]() { if (!is_object(JFactory:: [[#variable4cb4eda0]])) { //get the debug configuration setting $conf= &JFactory::getConfig(); $debug=$conf->getValue( [[#variable4cb4ed40]]); JFactory:: [[#variable4cb4eda0]]=JFactory:: [[#variable4cb4ece0]](); JFactory:: [[#variable4cb4eda0]]-> [[#variable4cb4ec60]]($debug); } return JFactory:: [[#variable4cb4eda0]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4cb4ee40]] | getLanguage |
1 | 2 | [[#4cb4ee40]] | getDbo |
2 | 1 | [[#4cb4eda0]] | $language |
2 | 2 | [[#4cb4eda0]] | $database |
3 | 1 | [[#4cb4ed40]] | 'config.debug_lang' |
3 | 2 | [[#4cb4ed40]] | 'config.debug' |
4 | 1 | [[#4cb4ece0]] | _createLanguage |
4 | 2 | [[#4cb4ece0]] | _createDBO |
5 | 1 | [[#4cb4ec60]] | setDebug |
5 | 2 | [[#4cb4ec60]] | debug |