CloneSet492


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13220.982statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11341
installation/models/fields/language.php
213137
installation/models/setup.php
Clone Instance
1
Line Count
13
Source Line
41
Source File
installation/models/fields/language.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();
                      }


Clone Instance
2
Line Count
13
Source Line
137
Source File
installation/models/setup.php

                $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();
                      }


Clone AbstractionParameter Count: 2Parameter Bindings

$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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#407242c0]]
'language' 
12[[#407242c0]]
'lang' 
21[[#40724240]]
// Get the list of available languages.
$list 
22[[#40724240]]
// Get the list of available languages.
$options