CloneSet355


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22220.995statement_sequence[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12259
installation/controllers/setup.json.php
22292
installation/controllers/setup.json.php
Clone Instance
1
Line Count
22
Source Line
59
Source File
installation/controllers/setup.json.php

                // Get the setup model.
                $model=  &$this-> getModel('Setup');

                // Store the options in the session.
                $vars=  $model->storeOptions($vars);

                // Get the database model.
                $filesystem=  &$this-> getModel('Filesystem');

                // Attempt to detect the Joomla root from the ftp account.
                $return=  $filesystem->detectFtpRoot($vars);

                // If an error was encountered return an error.
                if (!$return) {
                        $this->sendResponse(new JException($filesystem->getError(), 500));
                      }

                // Create a response body.
                $r=  new JObject();
                $r->root = $return;

                // Send the response.
                $this->sendResponse($r);


Clone Instance
2
Line Count
22
Source Line
92
Source File
installation/controllers/setup.json.php

                // Get the setup model.
                $model=  &$this-> getModel('Setup');

                // Store the options in the session.
                $vars=  $model->storeOptions($vars);

                // Get the database model.
                $filesystem=  &$this-> getModel('Filesystem');

                // Attempt to detect the Joomla root from the ftp account.
                $return=  $filesystem->verifyFtpSettings($vars);

                // If an error was encountered return an error.
                if (!$return) {
                        $this->sendResponse(new JException($filesystem->getError(), 500));
                      }

                // Create a response body.
                $r=  new JObject();
                $r->valid = $return;

                // Send the response.
                $this->sendResponse($r);


Clone AbstractionParameter Count: 2Parameter Bindings

// Get the setup model.
$model= &$this->getModel('Setup');
// Store the options in the session.
$vars=$model->storeOptions($vars);
// Get the database model.
$filesystem= &$this->getModel('Filesystem');
// Attempt to detect the Joomla root from the ftp account.
$return=$filesystem-> [[#variable4c732b60]]($vars);
// If an error was encountered return an error.
if (!$return) {
  $this->sendResponse(new JException($filesystem->getError(),500));
}
// Create a response body.
$r=new JObject();
$r-> [[#variable4c732b40]]=$return;
// Send the response.
$this->sendResponse($r);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4c732b60]]
detectFtpRoot 
12[[#4c732b60]]
verifyFtpSettings 
21[[#4c732b40]]
root 
22[[#4c732b40]]
valid