original_string: public function handleXmlHttpRequest(MvcEvent $event)
  	{
  		$request = $event->getRequest();
  		if ($request->isXMLHttpRequest()) {
  			$dispatchResult = $event->getResult();
  			if ($dispatchResult instanceof ViewModel) {
  				$dispatchResult->setTerminal(true);
  			}
  		}
  	}
code: public function handleXmlHttpRequest(MvcEvent $event)
  	{
  		$request = $event->getRequest();
  		if ($request->isXMLHttpRequest()) {
  			$dispatchResult = $event->getResult();
  			if ($dispatchResult instanceof ViewModel) {
  				$dispatchResult->setTerminal(true);
  			}
  		}
  	}
code_tokens: public function handleXmlHttpRequest ( MvcEvent $ event ) { $ request = $ event -> getRequest ( ) ; if ( $ request -> isXMLHttpRequest ( ) ) { $ dispatchResult = $ event -> getResult ( ) ; if ( $ dispatchResult instanceof ViewModel ) { $ dispatchResult -> setTerminal ( true ) ; } } }
docstring: If request is an XML HTTP Request disable layouts
  
  @param MvcEvent $event
docstring_tokens: If request is an XML HTTP Request disable layouts