original_string: public function getName()
  	{
  		$name = $this->_name;
  
  		if (empty($name))
  		{
  			$r = null;
  
  			if (!preg_match('/J(.*)/i', get_class($this), $r))
  			{
  				JLog::add(JText::_('JLIB_APPLICATION_ERROR_APPLICATION_GET_NAME'), JLog::WARNING, 'jerror');
  			}
  
  			$name = strtolower($r[1]);
  		}
  
  		return $name;
  	}
code: public function getName()
  	{
  		$name = $this->_name;
  
  		if (empty($name))
  		{
  			$r = null;
  
  			if (!preg_match('/J(.*)/i', get_class($this), $r))
  			{
  				JLog::add(JText::_('JLIB_APPLICATION_ERROR_APPLICATION_GET_NAME'), JLog::WARNING, 'jerror');
  			}
  
  			$name = strtolower($r[1]);
  		}
  
  		return $name;
  	}
code_tokens: public function getName ( ) { $ name = $ this -> _name ; if ( empty ( $ name ) ) { $ r = null ; if ( ! preg_match ( '/J(.*)/i' , get_class ( $ this ) , $ r ) ) { JLog :: add ( JText :: _ ( 'JLIB_APPLICATION_ERROR_APPLICATION_GET_NAME' ) , JLog :: WARNING , 'jerror' ) ; } $ name = strtolower ( $ r [ 1 ] ) ; } return $ name ; }
docstring: Method to get the application name.
  
  The dispatcher name is by default parsed using the classname, or it can be set
  by passing a $config['name'] in the class constructor.
  
  @return  string  The name of the dispatcher.
  
  @since   11.1
  @deprecated  4.0
docstring_tokens: Method to get the application name .