original_string: public function isPreflightRequest(HttpRequest $request)
      {
          return $this->isCorsRequest($request)
              && strtoupper($request->getMethod()) === 'OPTIONS'
              && $request->getHeaders()->has('Access-Control-Request-Method');
      }
code: public function isPreflightRequest(HttpRequest $request)
      {
          return $this->isCorsRequest($request)
              && strtoupper($request->getMethod()) === 'OPTIONS'
              && $request->getHeaders()->has('Access-Control-Request-Method');
      }
code_tokens: public function isPreflightRequest ( HttpRequest $ request ) { return $ this -> isCorsRequest ( $ request ) && strtoupper ( $ request -> getMethod ( ) ) === 'OPTIONS' && $ request -> getHeaders ( ) -> has ( 'Access-Control-Request-Method' ) ; }
docstring: Check if the CORS request is a preflight request
  
  @param  HttpRequest $request
  @return bool
docstring_tokens: Check if the CORS request is a preflight request