| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 18 | 3 | 4 | 0.984 | statement_sequence[4] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 18 | 143 | libraries/joomla/application/application.php |
| 2 | 18 | 70 | libraries/joomla/application/pathway.php |
| 3 | 18 | 93 | libraries/joomla/application/router.php |
| ||||
$info= &JApplicationHelper::getClientInfo($client, TRUE);
$path= $info->path
. DS
. 'includes'
. DS
. 'application.php';
if (file_exists($path))
{
require_once $path;
// Create a JRouter object
$classname= $prefix
. ucfirst($client);
$instance= new $classname($config);
}
else {
$error= JError::raiseError(500, 'Unable to load application: '
. $client);
return $error;
}
$instances[$client]= &$instance;
|
| ||||
//Load the router object
$info= &JApplicationHelper::getClientInfo($client, TRUE);
$path= $info->path
. DS
. 'includes'
. DS
. 'pathway.php';
if (file_exists($path))
{
require_once $path;
// Create a JPathway object
$classname= 'JPathway'
. ucfirst($client);
$instance= new $classname($options);
}
else {
$error= JError::raiseError(500, 'Unable to load pathway: '
. $client);
return $error;
}
$instances[$client]= & $instance;
|
| ||||
//Load the router object
$info= &JApplicationHelper::getClientInfo($client, TRUE);
$path= $info->path
. DS
. 'includes'
. DS
. 'router.php';
if (file_exists($path))
{
require_once $path;
// Create a JRouter object
$classname= 'JRouter'
. ucfirst($client);
$instance= new $classname($options);
}
else {
$error= JError::raiseError(500, 'Unable to load router: '
. $client);
return $error;
}
$instances[$client]= & $instance;
|
| |||
//Load the router object
$info= &JApplicationHelper::getClientInfo($client,TRUE);
$path=$info->path
. DS
. 'includes'
. DS
. [[#variable53dad1a0]];
if (file_exists($path)) {
require_once $path;
// Create a JRouter object
// Create a JPathway object
$classname= [[#variable53dad140]]
. ucfirst($client);
$instance=new $classname( [[#variable53dad020]]);
}
else {
$error=JError::raiseError(500, [[#variable53dad120]]
. $client);
return $error;
}
$instances[$client]= &$instance;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#53dad1a0]] | 'application.php' |
| 1 | 2 | [[#53dad1a0]] | 'pathway.php' |
| 1 | 3 | [[#53dad1a0]] | 'router.php' |
| 2 | 1 | [[#53dad140]] | $prefix |
| 2 | 2 | [[#53dad140]] | 'JPathway' |
| 2 | 3 | [[#53dad140]] | 'JRouter' |
| 3 | 1 | [[#53dad020]] | $config |
| 3 | 2 | [[#53dad020]] | $options |
| 3 | 3 | [[#53dad020]] | $options |
| 4 | 1 | [[#53dad120]] | 'Unable to load application: ' |
| 4 | 2 | [[#53dad120]] | 'Unable to load pathway: ' |
| 4 | 3 | [[#53dad120]] | 'Unable to load router: ' |