original_string: public function route()
  	{
  		$content = $this->_controller->{$this->_actionMethod}();
  
  		if ($this->_controller->isJson()) {
  			Request::setHeader(Request::HEADER_JSON);
  			echo json_encode($content);
  		} else {
  			echo $content;
  		}
  	}
code: public function route()
  	{
  		$content = $this->_controller->{$this->_actionMethod}();
  
  		if ($this->_controller->isJson()) {
  			Request::setHeader(Request::HEADER_JSON);
  			echo json_encode($content);
  		} else {
  			echo $content;
  		}
  	}
code_tokens: public function route ( ) { $ content = $ this -> _controller -> { $ this -> _actionMethod } ( ) ; if ( $ this -> _controller -> isJson ( ) ) { Request :: setHeader ( Request :: HEADER_JSON ) ; echo json_encode ( $ content ) ; } else { echo $ content ; } }
docstring: Route the request by invoking the corresponding controller and method.
docstring_tokens: Route the request by invoking the corresponding controller and method .