CloneSet514


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7230.984statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1758
administrator/components/com_installer/models/libraries.php
2776
administrator/components/com_installer/models/packages.php
Clone Instance
1
Line Count
7
Source Line
58
Source File
administrator/components/com_installer/models/libraries.php

                $files=   JFolder::files(JPATH_MANIFESTS
                                         .               DS
                                         .                  'libraries');
                $rows=  array();
                $file=  $files[0];
                foreach ($files as $file) {
                        if (strtolower(JFile::getExt($file)) == 'xml') {
                                $rows[]=  new JLibraryManifest(JPATH_MANIFESTS
                                                               .                 DS
                                                               .                      'libraries'
                                                               .                                    DS
                                                               .                                         $file);
                              }
                      }


Clone Instance
2
Line Count
7
Source Line
76
Source File
administrator/components/com_installer/models/packages.php

                $files=   JFolder::files(JPATH_MANIFESTS
                                         .               DS
                                         .                  'packages');
                $retval=  array();
                $file=  $files[0];
                foreach ($files as $file) {
                        if (strtolower(JFile::getExt($file)) == 'xml') {
                                $retval[]=  new JPackageManifest(JPATH_MANIFESTS
                                                                 .               DS
                                                                 .                  'packages'
                                                                 .                               DS
                                                                 .                                    $file);
                              }
                      }


Clone AbstractionParameter Count: 3Parameter Bindings

$files=JFolder::files(JPATH_MANIFESTS
                      . DS
                      .  [[#variable511f5bc0]]);
 [[#variable512b7560]]=array();
$file=$files[0];
foreach ($files as $file) {
  if (strtolower(JFile::getExt($file)) == 'xml') {
     [[#variable512b7560]][]=new [[#variable511f5b60]](JPATH_MANIFESTS
                                                       . DS
                                                       .  [[#variable511f5bc0]]
                                                       . DS
                                                       . $file);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#511f5bc0]]
'libraries' 
12[[#511f5bc0]]
'packages' 
21[[#512b7560]]
$rows 
22[[#512b7560]]
$retval 
31[[#511f5b60]]
JLibraryManifest 
32[[#511f5b60]]
JPackageManifest