original_string: public function url()
      {
          if (empty($parameters = func_get_args())) {
              return $this->to('/');
          }
  
          $path = array_shift($parameters);
  
          $result = preg_replace_callback('#\{(\d+)\}#', function ($matches) use ($parameters)
          {
              list ($value, $key) = $matches;
  
              return isset($parameters[$key]) ? $parameters[$key] : $value;
  
          }, $path);
  
          return $this->to($path);
      }
code: public function url()
      {
          if (empty($parameters = func_get_args())) {
              return $this->to('/');
          }
  
          $path = array_shift($parameters);
  
          $result = preg_replace_callback('#\{(\d+)\}#', function ($matches) use ($parameters)
          {
              list ($value, $key) = $matches;
  
              return isset($parameters[$key]) ? $parameters[$key] : $value;
  
          }, $path);
  
          return $this->to($path);
      }
code_tokens: public function url ( ) { if ( empty ( $ parameters = func_get_args ( ) ) ) { return $ this -> to ( '/' ) ; } $ path = array_shift ( $ parameters ) ; $ result = preg_replace_callback ( '#\{(\d+)\}#' , function ( $ matches ) use ( $ parameters ) { list ( $ value , $ key ) = $ matches ; return isset ( $ parameters [ $ key ] ) ? $ parameters [ $ key ] : $ value ; } , $ path ) ; return $ this -> to ( $ path ) ; }
docstring: Create a new redirect response from the given path and arguments.
  
  @return \Nova\Http\RedirectResponse
docstring_tokens: Create a new redirect response from the given path and arguments .