Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 2 | 0 | 1.000 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 739 | libraries/joomla/application/component/controller.php |
2 | 19 | 637 | libraries/joomla/application/component/view.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); } } |
| ||||
/** * 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); } } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |