CloneSet217


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
33220.997statement_sequence[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
126177
libraries/joomla/installer/adapters/language.php
233297
libraries/joomla/installer/adapters/language.php
Clone Instance
1
Line Count
26
Source Line
177
Source File
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');


Clone Instance
2
Line Count
33
Source Line
297
Source File
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', '');
                      }
                /**
                 * ---------------------------------------------------------------------------------------------
                 * Finalization and Cleanup Section
                 * ---------------------------------------------------------------------------------------------
                 */
                // Clobber any possible pending updates
                $update=  &JTable::getInstance('update');


Clone AbstractionParameter Count: 2Parameter Bindings

// 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58eecb80]]
/**
 * ---------------------------------------------------------------------------------------------
 * Finalization and Cleanup Section
 * ---------------------------------------------------------------------------------------------
 */
// Clobber any possible pending updates
$update 
12[[#58eecb80]]
// Add an entry to the extension table with a whole heap of defaults
$row 
21[[#58eecb60]]
'update' 
22[[#58eecb60]]
'extension'