original_string: public function upload(string $type, string $path)
      {
          $files = [
              'media' => $path,
          ];
  
          return $this->httpUpload('cgi-bin/media/upload', $files, [], compact('type'));
      }
code: public function upload(string $type, string $path)
      {
          $files = [
              'media' => $path,
          ];
  
          return $this->httpUpload('cgi-bin/media/upload', $files, [], compact('type'));
      }
code_tokens: public function upload ( string $ type , string $ path ) { $ files = [ 'media' => $ path , ] ; return $ this -> httpUpload ( 'cgi-bin/media/upload' , $ files , [ ] , compact ( 'type' ) ) ; }
docstring: Upload media.
  
  @param string $type
  @param string $path
  
  @return mixed
docstring_tokens: Upload media .