CloneSet401


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5301.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15737
libraries/joomla/installer/installer.php
25843
libraries/joomla/installer/installer.php
35951
libraries/joomla/installer/installer.php
Clone Instance
1
Line Count
5
Source Line
737
Source File
libraries/joomla/installer/installer.php

                /*
                 * Here we set the folder we are going to copy the files from.
                 *
                 * Does the element have a folder attribute?
                 *
                 * If so this indicates that the files are in a subdirectory of the source
                 * folder and we should append the folder attribute to the source path when
                 * copying files.
                 */
                $folder=  $element->attributes('folder');
                if ($folder
                    &&         file_exists($this->getPath('source')
                                           .                        DS
                                           .                           $folder)) {
                        $source=  $this->getPath('source')
                        .                                  DS
                        .                                     $folder;
                      }
                else   {
                        $source=  $this->getPath('source');
                      }


Clone Instance
2
Line Count
5
Source Line
843
Source File
libraries/joomla/installer/installer.php

                /*
                 * Here we set the folder we are going to copy the files from.
                 *
                 * Does the element have a folder attribute?
                 *
                 * If so this indicates that the files are in a subdirectory of the source
                 * folder and we should append the folder attribute to the source path when
                 * copying files.
                 */
                $folder=  $element->attributes('folder');
                if ($folder
                    &&         file_exists($this->getPath('source')
                                           .                        DS
                                           .                           $folder)) {
                        $source=  $this->getPath('source')
                        .                                  DS
                        .                                     $folder;
                      }
                else   {
                        $source=  $this->getPath('source');
                      }


Clone Instance
3
Line Count
5
Source Line
951
Source File
libraries/joomla/installer/installer.php

                /*
                 * Here we set the folder we are going to copy the files from.
                 *
                 * Does the element have a folder attribute?
                 *
                 * If so this indicates that the files are in a subdirectory of the source
                 * folder and we should append the folder attribute to the source path when
                 * copying files.
                 */
                $folder=  $element->attributes('folder');
                if ($folder
                    &&         file_exists($this->getPath('source')
                                           .                        DS
                                           .                           $folder)) {
                        $source=  $this->getPath('source')
                        .                                  DS
                        .                                     $folder;
                      }
                else   {
                        $source=  $this->getPath('source');
                      }


Clone AbstractionParameter Count: 0Parameter Bindings

/*
                 * Here we set the folder we are going to copy the files from.
                 *
                 * Does the element have a folder attribute?
                 *
                 * If so this indicates that the files are in a subdirectory of the source
                 * folder and we should append the folder attribute to the source path when
                 * copying files.
                 */
$folder=$element->attributes('folder');
if ($folder
    && file_exists($this->getPath('source')
                   . DS
                   . $folder)) {
  $source=$this->getPath('source')
  . DS
  . $folder;
}
else {
  $source=$this->getPath('source');
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None