original_string: public function isAjaxRequest()
      {
          return
              false !== strpos(
                  strtolower(ServerRequestFactory::getHeader('x-requested-with', $this->getRequest()->getHeaders(), '')),
                  'xmlhttprequest'
              ) && $this->isHttpRequest();
      }
code: public function isAjaxRequest()
      {
          return
              false !== strpos(
                  strtolower(ServerRequestFactory::getHeader('x-requested-with', $this->getRequest()->getHeaders(), '')),
                  'xmlhttprequest'
              ) && $this->isHttpRequest();
      }
code_tokens: public function isAjaxRequest ( ) { return false !== strpos ( strtolower ( ServerRequestFactory :: getHeader ( 'x-requested-with' , $ this -> getRequest ( ) -> getHeaders ( ) , '' ) ) , 'xmlhttprequest' ) && $ this -> isHttpRequest ( ) ; }
docstring: Check if request is a ajax request
  
  @return bool
docstring_tokens: Check if request is a ajax request