CloneSet752


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8230.974class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1886
administrator/components/com_installer/models/libraries.php
28101
administrator/components/com_installer/models/packages.php
Clone Instance
1
Line Count
8
Source Line
86
Source File
administrator/components/com_installer/models/libraries.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;
              }


Clone Instance
2
Line Count
8
Source Line
101
Source File
administrator/components/com_installer/models/packages.php

    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;
              }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#24ca1920]]
$library 
12[[#24ca1920]]
$package 
21[[#24ca1860]]
JLibraryManifest 
22[[#24ca1860]]
JPackageManifest 
31[[#24ca18e0]]
'libraries' 
32[[#24ca18e0]]
'packages'