original_string: private function isAjax(ServerRequestInterface $request): bool
      {
          $params = $request->getServerParams();
  
          if (! array_key_exists('HTTP_X_REQUESTED_WITH', $params)) {
  
              return false;
  
          }
  
          return strtolower($params['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest';
      }
code: private function isAjax(ServerRequestInterface $request): bool
      {
          $params = $request->getServerParams();
  
          if (! array_key_exists('HTTP_X_REQUESTED_WITH', $params)) {
  
              return false;
  
          }
  
          return strtolower($params['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest';
      }
code_tokens: private function isAjax ( ServerRequestInterface $ request ) : bool { $ params = $ request -> getServerParams ( ) ; if ( ! array_key_exists ( 'HTTP_X_REQUESTED_WITH' , $ params ) ) { return false ; } return strtolower ( $ params [ 'HTTP_X_REQUESTED_WITH' ] ) == 'xmlhttprequest' ; }
docstring: Return whether the request is an ajax request.
  
  @param \Psr\Http\Message\ServerRequestInterface $request
  @return bool
docstring_tokens: Return whether the request is an ajax request .