Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
22 | 2 | 2 | 0.995 | statement_sequence[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 22 | 59 | installation/controllers/setup.json.php |
2 | 22 | 92 | 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); |
| ||||
// 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); |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4c732b60]] | detectFtpRoot |
1 | 2 | [[#4c732b60]] | verifyFtpSettings |
2 | 1 | [[#4c732b40]] | root |
2 | 2 | [[#4c732b40]] | valid |