CloneSet274


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14320.994function_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114434
libraries/joomla/application/application.php
214483
libraries/joomla/application/component/controller.php
314212
libraries/joomla/application/component/model.php
Clone Instance
1
Line Count
14
Source Line
434
Source File
libraries/joomla/application/application.php

        /**
         * Method to get the application name
         *
         * The dispatcher name by default parsed using the classname, or it can be set
         * by passing a $config['name'] in the class constructor
         *
         * @access      public
         * @return      string The name of the dispatcher
         * @since       1.5
         */
        function getName() {

                $name=  $this->_name;

                if (empty($name))
                {
                        $r=  NULL;
                        if (!preg_match('/J(.*)/i', get_class($this), $r)) {
                                JError::raiseError(500, "JApplication::getName() : Can\\'t get or parse class name.");
                              }
                        $name=  strtolower($r[1]);
                      }

                return $name;
              }


Clone Instance
2
Line Count
14
Source Line
483
Source File
libraries/joomla/application/component/controller.php

        /**
         * Method to get the controller name
         *
         * The dispatcher name by default parsed using the classname, or it can be set
         * by passing a $config['name'] in the class constructor
         *
         * @access      public
         * @return      string The name of the dispatcher
         * @since       1.5
         */
        function getName() {

                $name=  $this->_name;

                if (empty($name))
                {
                        $r=  NULL;
                        if (!preg_match('/(.*)Controller/i', get_class($this), $r)) {
                                JError::raiseError(500, "JController::getName() : Cannot get or parse class name.");
                              }
                        $name=  strtolower($r[1]);
                      }

                return $name;
              }


Clone Instance
3
Line Count
14
Source Line
212
Source File
libraries/joomla/application/component/model.php

               function getName() {

                $name=  $this->_name;

                if (empty($name))
                {
                        $r=  NULL;
                        if (!preg_match('/Model(.*)/i', get_class($this), $r)) {
                                JError::raiseError( 500, "JModel::getName() : Can't get or parse class name.");
                              }
                        $name=  strtolower($r[1]);
                      }

                return $name;
              }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * Method to get the application name
         *
         * The dispatcher name by default parsed using the classname, or it can be set
         * by passing a $config['name'] in the class constructor
         *
         * @access      public
         * @return      string The name of the dispatcher
         * @since       1.5
         */
/**
         * Method to get the controller name
         *
         * The dispatcher name by default parsed using the classname, or it can be set
         * by passing a $config['name'] in the class constructor
         *
         * @access      public
         * @return      string The name of the dispatcher
         * @since       1.5
         */
function getName() {
  $name=$this->_name;
  if (empty($name)) {
    $r=NULL;
    if (!preg_match( [[#variable4e46ed00]],get_class($this),$r)) {
      JError::raiseError(500, [[#variable4e46ed80]]);
    }
    $name=strtolower($r[1]);
  }
  return $name;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4e46ed00]]
'/J(.*)/i' 
12[[#4e46ed00]]
'/(.*)Controller/i' 
13[[#4e46ed00]]
'/Model(.*)/i' 
21[[#4e46ed80]]
"JApplication::getName() : Can\\'t get or parse class name." 
22[[#4e46ed80]]
"JController::getName() : Cannot get or parse class name." 
23[[#4e46ed80]]
"JModel::getName() : Can't get or parse class name."