original_string: public static function createFromBase(SymfonyRequest $request)
      {
          if ($request instanceof static) return $request;
  
          $content = $request->content;
  
          $request = (new static)->duplicate(
              $request->query->all(),
              $request->request->all(),
              $request->attributes->all(),
              $request->cookies->all(),
              $request->files->all(),
              $request->server->all()
          );
  
          $request->content = $content;
  
          $request->request = $request->getInputSource();
  
          return $request;
      }
code: public static function createFromBase(SymfonyRequest $request)
      {
          if ($request instanceof static) return $request;
  
          $content = $request->content;
  
          $request = (new static)->duplicate(
              $request->query->all(),
              $request->request->all(),
              $request->attributes->all(),
              $request->cookies->all(),
              $request->files->all(),
              $request->server->all()
          );
  
          $request->content = $content;
  
          $request->request = $request->getInputSource();
  
          return $request;
      }
code_tokens: public static function createFromBase ( SymfonyRequest $ request ) { if ( $ request instanceof static ) return $ request ; $ content = $ request -> content ; $ request = ( new static ) -> duplicate ( $ request -> query -> all ( ) , $ request -> request -> all ( ) , $ request -> attributes -> all ( ) , $ request -> cookies -> all ( ) , $ request -> files -> all ( ) , $ request -> server -> all ( ) ) ; $ request -> content = $ content ; $ request -> request = $ request -> getInputSource ( ) ; return $ request ; }
docstring: Create an Nova request from a Symfony instance.
  
  @param  \Symfony\Component\HttpFoundation\Request  $request
  @return \Nova\Http\Request
docstring_tokens: Create an Nova request from a Symfony instance .