CloneSet187


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18340.984statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118143
libraries/joomla/application/application.php
21870
libraries/joomla/application/pathway.php
31893
libraries/joomla/application/router.php
Clone Instance
1
Line Count
18
Source Line
143
Source File
libraries/joomla/application/application.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;


Clone Instance
2
Line Count
18
Source Line
70
Source File
libraries/joomla/application/pathway.php

                        //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;


Clone Instance
3
Line Count
18
Source Line
93
Source File
libraries/joomla/application/router.php

                        //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;


Clone AbstractionParameter Count: 4Parameter Bindings

//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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#53dad1a0]]
'application.php' 
12[[#53dad1a0]]
'pathway.php' 
13[[#53dad1a0]]
'router.php' 
21[[#53dad140]]
$prefix 
22[[#53dad140]]
'JPathway' 
23[[#53dad140]]
'JRouter' 
31[[#53dad020]]
$config 
32[[#53dad020]]
$options 
33[[#53dad020]]
$options 
41[[#53dad120]]
'Unable to load application: ' 
42[[#53dad120]]
'Unable to load pathway: ' 
43[[#53dad120]]
'Unable to load router: '