CloneSet289


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9210.998if_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19230
libraries/joomla/installer/adapters/module.php
29198
libraries/joomla/installer/adapters/plugin.php
Clone Instance
1
Line Count
9
Source Line
230
Source File
libraries/joomla/installer/adapters/module.php

                // If there is a manifest script, lets copy it.
                if ($this->get('manifest_script')) {
                        $path['src']=  $this->parent->getPath('source')
                                       .                                DS
                                       .                                   $this->get('manifest_script');
                        $path['dest']=  $this->parent->getPath('extension_root')
                                        .                                        DS
                                        .                                           $this->get('manifest_script');
                        if (!file_exists($path['dest'])) {
                                if (!$this->parent->copyFiles(array( $path))) {
                                        // Install failed, rollback changes
                                        $this->parent->abort(JText::_('Module')
                                                             .                  ' '
                                                             .                      JText::_($this->route)
                                                             .                                             ': '
                                                             .                                                  JText::_('Could not copy PHP manifest file.'));
                                        return FALSE;
                                      }
                              }
                      }


Clone Instance
2
Line Count
9
Source Line
198
Source File
libraries/joomla/installer/adapters/plugin.php

                // If there is a manifest script, lets copy it.
                if ($this->get('manifest_script')) {
                        $path['src']=  $this->parent->getPath('source')
                                       .                                DS
                                       .                                   $this->get('manifest_script');
                        $path['dest']=  $this->parent->getPath('extension_root')
                                        .                                        DS
                                        .                                           $this->get('manifest_script');
                        if (!file_exists($path['dest'])) {
                                if (!$this->parent->copyFiles(array( $path))) {
                                        // Install failed, rollback changes
                                        $this->parent->abort(JText::_('Plugin')
                                                             .                  ' '
                                                             .                      JText::_($this->route)
                                                             .                                             ': '
                                                             .                                                  JText::_('Could not copy PHP manifest file.'));
                                        return FALSE;
                                      }
                              }
                      }


Clone AbstractionParameter Count: 1Parameter Bindings

// If there is a manifest script, lets copy it.
if ($this->get('manifest_script')) {
  $path['src']=$this->parent->getPath('source')
               . DS
               . $this->get('manifest_script');
  $path['dest']=$this->parent->getPath('extension_root')
                . DS
                . $this->get('manifest_script');
  if (!file_exists($path['dest'])) {
    if (!$this->parent->copyFiles(array($path))) {
      // Install failed, rollback changes
      $this->parent->abort(JText::_( [[#variable44c02640]])
                           . ' '
                           . JText::_($this->route)
                           . ': '
                           . JText::_('Could not copy PHP manifest file.'));
      return FALSE;
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#44c02640]]
'Module' 
12[[#44c02640]]
'Plugin'