Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
33 | 2 | 2 | 0.997 | statement_sequence[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 26 | 177 | libraries/joomla/installer/adapters/language.php |
2 | 33 | 297 | libraries/joomla/installer/adapters/language.php |
| ||||
// Copy all the necessary files if ($this->parent->parseFiles($element) === FALSE) { // Install failed, rollback changes $this->parent->abort(); return FALSE; } // Copy all the necessary font files to the common pdf_fonts directory $this->parent->setPath('extension_site', $basePath . DS . 'language' . DS . 'pdf_fonts'); $overwrite= $this->parent->setOverwrite(TRUE); if ($this->parent->parseFiles($root->getElementByPath('fonts')) === FALSE) { // Install failed, rollback changes $this->parent->abort(); return FALSE; } $this->parent->setOverwrite($overwrite); // Get the language description $description= & $root->getElementByPath('description'); if ($description instanceof JSimpleXMLElement) { $this->parent->set('message', $description->data()); } else { $this->parent->set('message', ''); } // Add an entry to the extension table with a whole heap of defaults $row= & JTable::getInstance('extension'); |
| ||||
// Copy all the necessary files if ($this->parent->parseFiles($element) === FALSE) { // Install failed, rollback changes $this->parent->abort(); return FALSE; } // Copy all the necessary font files to the common pdf_fonts directory $this->parent->setPath('extension_site', $basePath . DS . 'language' . DS . 'pdf_fonts'); $overwrite= $this->parent->setOverwrite(TRUE); if ($this->parent->parseFiles($root->getElementByPath('fonts')) === FALSE) { // Install failed, rollback changes $this->parent->abort(); return FALSE; } $this->parent->setOverwrite($overwrite); // Get the language description $description= & $root->getElementByPath('description'); if ($description instanceof JSimpleXMLElement) { $this->parent->set('message', $description->data()); } else { $this->parent->set('message', ''); } /** * --------------------------------------------------------------------------------------------- * Finalization and Cleanup Section * --------------------------------------------------------------------------------------------- */ // Clobber any possible pending updates $update= &JTable::getInstance('update'); |
| |||
// Copy all the necessary files if ($this->parent->parseFiles($element) === FALSE) { // Install failed, rollback changes $this->parent->abort(); return FALSE; } // Copy all the necessary font files to the common pdf_fonts directory $this->parent->setPath('extension_site',$basePath . DS . 'language' . DS . 'pdf_fonts'); $overwrite=$this->parent->setOverwrite(TRUE); if ($this->parent->parseFiles($root->getElementByPath('fonts')) === FALSE) { // Install failed, rollback changes $this->parent->abort(); return FALSE; } $this->parent->setOverwrite($overwrite); // Get the language description $description= &$root->getElementByPath('description'); if ($description instanceof JSimpleXMLElement) { $this->parent->set('message',$description->data()); } else { $this->parent->set('message',''); } [[#variable58eecb80]]= &JTable::getInstance( [[#variable58eecb60]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#58eecb80]] | /** * --------------------------------------------------------------------------------------------- * Finalization and Cleanup Section * --------------------------------------------------------------------------------------------- */ // Clobber any possible pending updates $update |
1 | 2 | [[#58eecb80]] | // Add an entry to the extension table with a whole heap of defaults $row |
2 | 1 | [[#58eecb60]] | 'update' |
2 | 2 | [[#58eecb60]] | 'extension' |