Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
24 | 2 | 2 | 0.967 | statement_sequence[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 24 | 501 | libraries/joomla/installer/adapters/component.php |
2 | 24 | 403 | libraries/joomla/installer/adapters/plugin.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(); |
| ||||
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(); |
| |||
/** * --------------------------------------------------------------------------------------------- * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#58e936e0]] | 'plg' . $row->folder . $row->element |
1 | 2 | [[#58e936e0]] | $element |
2 | 1 | [[#58e93720]] | $this->route |
2 | 2 | [[#58e93720]] | 'update' |