CloneSet201


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24220.967statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
124501
libraries/joomla/installer/adapters/component.php
224403
libraries/joomla/installer/adapters/plugin.php
Clone Instance
1
Line Count
24
Source Line
501
Source File
libraries/joomla/installer/adapters/component.php

                /**
                 * ---------------------------------------------------------------------------------------------
                 * Installer Trigger Loading
                 * ---------------------------------------------------------------------------------------------
                 */
                // If there is an manifest class file, lets load it; we'll copy it later (don't have dest yet)
                if (is_a($this->scriptElement ,'JSimpleXMLElement')) {
                        $manifestScript=  $this->scriptElement->data();
                        $manifestScriptFile=  $this->parent->getPath('source')
                        .                                                      DS
                        .                                                         $manifestScript;
                        if (is_file($manifestScriptFile)) {
                                // load the file
                                include_once ($manifestScriptFile);
                              }
                        // Set the class name
                        $classname=  $element
                                     .        'InstallerScript';
                        if (class_exists($classname)) {
                                // create a new instance
                                $this->parent->manifestClass = new $classname($this);
                                // and set this so we can copy it later
                                $this->set('manifest_script', $manifestScript);
                                // Note: if we don't find the class, don't bother to copy the file
                              }
                      }
                // run preflight if possible (since we know we're not an update)
                ob_start();
                ob_implicit_flush(FALSE);
                if ($this->parent->manifestClass
                    &&                              method_exists($this->parent->manifestClass ,'preflight')) $this->parent->manifestClass->preflight('update', $this);
                $msg=  ob_get_contents(); // create msg object; first use here
                ob_end_clean();


Clone Instance
2
Line Count
24
Source Line
403
Source File
libraries/joomla/installer/adapters/plugin.php

                        if (is_a($this->scriptElement ,'JSimpleXMLElement')) {
                                $manifestScript=  $this->scriptElement->data();
                                $manifestScriptFile=  $this->parent->getPath('source')
                                .                                                      DS
                                .                                                         $manifestScript;
                                if (is_file($manifestScriptFile)) {
                                        // load the file
                                        include_once ($manifestScriptFile);
                                      }
                                // Set the class name
                                $classname=  'plg'
                                             .     $row->folder
                                             .                  $row->element
                                             .                                'InstallerScript';
                                if (class_exists($classname)) {
                                        // create a new instance
                                        $this->parent->manifestClass = new $classname($this);
                                        // and set this so we can copy it later
                                        $this->set('manifest_script', $manifestScript);
                                        // Note: if we don't find the class, don't bother to copy the file
                                      }
                              }
                        // run preflight if possible (since we know we're not an update)
                        ob_start();
                        ob_implicit_flush(FALSE);
                        if ($this->parent->manifestClass
                            &&                              method_exists($this->parent->manifestClass ,'preflight')) $this->parent->manifestClass->preflight($this->route ,$this);
                        $msg=  ob_get_contents(); // create msg object; first use here
                        ob_end_clean();


Clone AbstractionParameter Count: 2Parameter Bindings

/**
                 * ---------------------------------------------------------------------------------------------
                 * Installer Trigger Loading
                 * ---------------------------------------------------------------------------------------------
                 */
// If there is an manifest class file, lets load it; we'll copy it later (don't have dest yet)
if (is_a($this->scriptElement ,'JSimpleXMLElement')) {
  $manifestScript=$this->scriptElement->data();
  $manifestScriptFile=$this->parent->getPath('source')
  . DS
  . $manifestScript;
  if (is_file($manifestScriptFile)) {
    // load the file
    include_once ($manifestScriptFile);
  }
  // Set the class name
  $classname= [[#variable58e936e0]]
             . 'InstallerScript';
  if (class_exists($classname)) {
    // create a new instance
    $this->parent->manifestClass =new $classname($this);
    // and set this so we can copy it later
    $this->set('manifest_script',$manifestScript);
  // Note: if we don't find the class, don't bother to copy the file
  }
}
// run preflight if possible (since we know we're not an update)
ob_start();
ob_implicit_flush(FALSE);
if ($this->parent->manifestClass
    && method_exists($this->parent->manifestClass ,'preflight'))
  $this->parent->manifestClass->preflight( [[#variable58e93720]],$this);
$msg=ob_get_contents(); // create msg object; first use here
ob_end_clean();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58e936e0]]
'plg'
. $row->folder
. $row->element 
12[[#58e936e0]]
$element 
21[[#58e93720]]
$this->route 
22[[#58e93720]]
'update'