Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 3 | 0.974 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 86 | administrator/components/com_installer/models/libraries.php |
2 | 8 | 101 | administrator/components/com_installer/models/packages.php |
| ||||
/** * Get the details of a given manifest file * @param string file Path to file to load * @return JLibraryManifest populated with data */ function &getDetails($file) { $library= new JLibraryManifest(); $retval= FALSE; $library->manifest_filename = $file; if ($library->loadManifestFromXML(JPATH_MANIFESTS . DS . 'libraries' . DS . $file . '.xml')) return $library; else return $retval; } |
| ||||
function &getDetails($file) { $package= new JPackageManifest(); $retval= FALSE; $package->manifest_filename = $file; if ($package->loadManifestFromXML(JPATH_MANIFESTS . DS . 'packages' . DS . $file . '.xml')) return $package; else return $retval; } |
| |||
/** * Get the details of a given manifest file * @param string file Path to file to load * @return JLibraryManifest populated with data */ function &getDetails($file) { [[#variable24ca1920]]=new [[#variable24ca1860]](); $retval=FALSE; [[#variable24ca1920]]->manifest_filename =$file; if ( [[#variable24ca1920]]->loadManifestFromXML(JPATH_MANIFESTS . DS . [[#variable24ca18e0]] . DS . $file . '.xml')) return [[#variable24ca1920]]; else return $retval; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#24ca1920]] | $library |
1 | 2 | [[#24ca1920]] | $package |
2 | 1 | [[#24ca1860]] | JLibraryManifest |
2 | 2 | [[#24ca1860]] | JPackageManifest |
3 | 1 | [[#24ca18e0]] | 'libraries' |
3 | 2 | [[#24ca18e0]] | 'packages' |