CloneSet205


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21220.975class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121123
libraries/joomla/cache/cache.php
222257
libraries/joomla/session/session.php
Clone Instance
1
Line Count
21
Source Line
123
Source File
libraries/joomla/cache/cache.php

        /**
         * Get the storage handlers
         *
         * @access public
         * @return array An array of available storage handlers
         */
        function getStores() {

                jimport('joomla.filesystem.folder');
                $handlers=  JFolder::files(dirname( __FILE__)
                                           .                 DS
                                           .                    'storage', '.php$');
                $names=  array();
                foreach ($handlers as $handler)
                {
                        $name=  substr($handler, 0, strrpos($handler, '.'));
                        $class=  'JCacheStorage'
                                 .               $name;
                        if (!class_exists($class)) {
                                require_once (dirname( __FILE__)
                                              .                 DS
                                              .                    'storage'
                                              .                              DS
                                              .                                 $name
                                              .                                       '.php');
                              }
                        if (call_user_func_array(array( trim($class), 'test'
                                                      ),                      NULL)) {
                                $names[]=  $name;
                              }
                      }
                return $names;
              }


Clone Instance
2
Line Count
22
Source Line
257
Source File
libraries/joomla/session/session.php

        /**
         * Get the session handlers
         *
         * @access public
         * @return array An array of available session handlers
         */
        function getStores() {

                jimport('joomla.filesystem.folder');
                $handlers=  JFolder::files(dirname( __FILE__)
                                           .                 DS
                                           .                    'storage', '.php$');
                $names=  array();
                foreach ($handlers as $handler)
                {
                        $name=  substr($handler, 0, strrpos($handler, '.'));
                        $class=  'JSessionStorage'
                                 .                 ucfirst($name);
                        //Load the class only if needed
                        if (!class_exists($class)) {
                                require_once (dirname( __FILE__)
                                              .                 DS
                                              .                    'storage'
                                              .                              DS
                                              .                                 $name
                                              .                                       '.php');
                              }
                        if (call_user_func_array(array( trim($class), 'test'
                                                      ),                      NULL)) {
                                $names[]=  $name;
                              }
                      }
                return $names;
              }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * Get the storage handlers
         *
         * @access public
         * @return array An array of available storage handlers
         */
/**
         * Get the session handlers
         *
         * @access public
         * @return array An array of available session handlers
         */
function getStores() {
  jimport('joomla.filesystem.folder');
  $handlers=JFolder::files(dirname( __FILE__)
                           . DS
                           . 'storage','.php$');
  $names=array();
  foreach ($handlers as $handler) {
    $name=substr($handler,0,strrpos($handler,'.'));
    $class= [[#variable507d92c0]]
           .  [[#variable507d91a0]];
    //Load the class only if needed
    if (!class_exists($class)) {
      require_once (dirname( __FILE__)
                    . DS
                    . 'storage'
                    . DS
                    . $name
                    . '.php');
    }
    if (call_user_func_array(array( trim($class),
                                    'test'
                                  ),NULL)) {
      $names[]=$name;
    }
  }
  return $names;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#507d92c0]]
'JCacheStorage' 
12[[#507d92c0]]
'JSessionStorage' 
21[[#507d91a0]]
$name 
22[[#507d91a0]]
ucfirst($name)