original_string: public function getUploadPath(UploadedFile $file)
      {
          if (($path = $this->uploadPath)) {
              if (is_callable($path)) {
                  $path = call_user_func($path, $file);
              }
  
              return trim($path, '/');
          }
  
          return $this->getDefaultUploadPath($file);
      }
code: public function getUploadPath(UploadedFile $file)
      {
          if (($path = $this->uploadPath)) {
              if (is_callable($path)) {
                  $path = call_user_func($path, $file);
              }
  
              return trim($path, '/');
          }
  
          return $this->getDefaultUploadPath($file);
      }
code_tokens: public function getUploadPath ( UploadedFile $ file ) { if ( ( $ path = $ this -> uploadPath ) ) { if ( is_callable ( $ path ) ) { $ path = call_user_func ( $ path , $ file ) ; } return trim ( $ path , '/' ) ; } return $ this -> getDefaultUploadPath ( $ file ) ; }
docstring: Get relative path of the upload file.
  
  @param \Illuminate\Http\UploadedFile $file
  
  @return \Closure|mixed|null|string
docstring_tokens: Get relative path of the upload file .