CloneSet113


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
26210.998statement_sequence[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12681
administrator/components/com_installer/models/install.php
227195
libraries/joomla/updater/update.php
Clone Instance
1
Line Count
26
Source Line
81
Source File
administrator/components/com_installer/models/install.php

                // Install the package
                if (!$installer->install($package['dir'])) {
                        // There was an error installing the package
                        $msg=  JText::sprintf('INSTALLEXT', JText::_($package['type']), JText::_('Error'));
                        $result=  FALSE;
                      }
                else   {
                        // Package installed sucessfully
                        $msg=  JText::sprintf('INSTALLEXT', JText::_($package['type']), JText::_('Success'));
                        $result=  TRUE;
                      }
                // Set some model state values
                $mainframe->enqueueMessage($msg);
                $this->setState('name', $installer->get('name'));
                $this->setState('result', $result);
                $this->setState('message', $installer->message);
                $this->setState('extension_message', $installer->get('extension_message'));

                // Cleanup the install files
                if (!is_file($package['packagefile'])) {
                        $config=  &JFactory::getConfig();
                        $package['packagefile']=  $config->getValue('config.tmp_path')
                        .                                                              DS
                        .                                                                 $package['packagefile'];
                      }
                JInstallerHelper::cleanupInstall($package['packagefile'], $package['extractdir']);
                return $result;


Clone Instance
2
Line Count
27
Source Line
195
Source File
libraries/joomla/updater/update.php

                // Install the package
                if (!$installer->install($package['dir'])) {
                        // There was an error installing the package
                        $msg=  JText::sprintf('INSTALLEXT', JText::_($package['type']), JText::_('Error'));
                        $result=  FALSE;
                      }
                else   {
                        // Package installed sucessfully
                        $msg=  JText::sprintf('INSTALLEXT', JText::_($package['type']), JText::_('Success'));
                        $result=  TRUE;
                      }
                // Set some model state values
                $mainframe->enqueueMessage($msg);

                $this->setState('name', $installer->get('name'));
                $this->setState('result', $result);
                $this->setState('message', $installer->message);
                $this->setState('extension.message', $installer->get('extension.message'));

                // Cleanup the install files
                if (!is_file($package['packagefile'])) {
                        $config= & JFactory::getConfig();
                        $package['packagefile']=  $config->getValue('config.tmp_path')
                        .                                                              DS
                        .                                                                 $package['packagefile'];
                      }
                JInstallerHelper::cleanupInstall($package['packagefile'], $package['extractdir']);
                return $result;


Clone AbstractionParameter Count: 1Parameter Bindings

// Install the package
if (!$installer->install($package['dir'])) {
  // There was an error installing the package
  $msg=JText::sprintf('INSTALLEXT',JText::_($package['type']),JText::_('Error'));
  $result=FALSE;
}
else {
  // Package installed sucessfully
  $msg=JText::sprintf('INSTALLEXT',JText::_($package['type']),JText::_('Success'));
  $result=TRUE;
}
// Set some model state values
$mainframe->enqueueMessage($msg);
$this->setState('name',$installer->get('name'));
$this->setState('result',$result);
$this->setState('message',$installer->message);
$this->setState( [[#variable4605e100]],$installer->get( [[#variable4605e100]]));
// Cleanup the install files
if (!is_file($package['packagefile'])) {
  $config= &JFactory::getConfig();
  $package['packagefile']=$config->getValue('config.tmp_path')
  . DS
  . $package['packagefile'];
}
JInstallerHelper::cleanupInstall($package['packagefile'],$package['extractdir']);
return $result;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4605e100]]
'extension_message' 
12[[#4605e100]]
'extension.message'