CloneSet518


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19201.000class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119739
libraries/joomla/application/component/controller.php
219637
libraries/joomla/application/component/view.php
Clone Instance
1
Line Count
19
Source Line
739
Source File
libraries/joomla/application/component/controller.php

        /**
        * Adds to the search path for templates and resources.
        *
        * @access       protected
        * @param        string The path type (e.g. 'model', 'view'.
        * @param        string|array The directory or stream to search.
        * @return       void
        */
        function _addPath($type, $path) {

                // just force path to array
                settype($path, 'array');

                // loop through the path directories
                foreach ($path as $dir)
                {
                        // no surrounding spaces allowed!
                        $dir=  trim($dir);

                        // add trailing separators as needed
                        if (substr($dir, -1) != DIRECTORY_SEPARATOR) {
                                // directory
                                $dir.=  DIRECTORY_SEPARATOR;
                              }

                        // add to the top of the search dirs
                        array_unshift($this->_path[$type], $dir);
                      }
              }


Clone Instance
2
Line Count
19
Source Line
637
Source File
libraries/joomla/application/component/view.php

        /**
        * Adds to the search path for templates and resources.
        *
        * @access protected
        * @param string|array $path The directory or stream to search.
        */
        function _addPath($type, $path) {

                // just force to array
                settype($path, 'array');

                // loop through the path directories
                foreach ($path as $dir)
                {
                        // no surrounding spaces allowed!
                        $dir=  trim($dir);

                        // add trailing separators as needed
                        if (substr($dir, -1) != DIRECTORY_SEPARATOR) {
                                // directory
                                $dir.=  DIRECTORY_SEPARATOR;
                              }

                        // add to the top of the search dirs
                        array_unshift($this->_path[$type], $dir);
                      }
              }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
        * Adds to the search path for templates and resources.
        *
        * @access       protected
        * @param        string The path type (e.g. 'model', 'view'.
        * @param        string|array The directory or stream to search.
        * @return       void
        */
/**
        * Adds to the search path for templates and resources.
        *
        * @access protected
        * @param string|array $path The directory or stream to search.
        */
function _addPath($type,$path) {
  // just force path to array
  // just force to array
  settype($path,'array');
  // loop through the path directories
  foreach ($path as $dir) {
    // no surrounding spaces allowed!
    $dir=trim($dir);
    // add trailing separators as needed
    if (substr($dir,-1) != DIRECTORY_SEPARATOR) {
      // directory
      $dir.=DIRECTORY_SEPARATOR;
    }
    // add to the top of the search dirs
    array_unshift($this->_path[$type],$dir);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None