original_string: public function getFileDetail(LibraryType $library, string $remoteFilePath): DirectoryItem
      {
          $url = $this->client->getConfig('base_uri')
              . '/repos/'
              . $library->id
              . '/file/detail/'
              . '?p=' . $this->urlEncodePath($remoteFilePath);
  
          $response = $this->client->request('GET', $url);
  
          $json = json_decode((string)$response->getBody());
  
          return (new DirectoryItem)->fromJson($json);
      }
code: public function getFileDetail(LibraryType $library, string $remoteFilePath): DirectoryItem
      {
          $url = $this->client->getConfig('base_uri')
              . '/repos/'
              . $library->id
              . '/file/detail/'
              . '?p=' . $this->urlEncodePath($remoteFilePath);
  
          $response = $this->client->request('GET', $url);
  
          $json = json_decode((string)$response->getBody());
  
          return (new DirectoryItem)->fromJson($json);
      }
code_tokens: public function getFileDetail ( LibraryType $ library , string $ remoteFilePath ) : DirectoryItem { $ url = $ this -> client -> getConfig ( 'base_uri' ) . '/repos/' . $ library -> id . '/file/detail/' . '?p=' . $ this -> urlEncodePath ( $ remoteFilePath ) ; $ response = $ this -> client -> request ( 'GET' , $ url ) ; $ json = json_decode ( ( string ) $ response -> getBody ( ) ) ; return ( new DirectoryItem ) -> fromJson ( $ json ) ; }
docstring: Get file detail
  
  @param LibraryType $library        Library instance
  @param string      $remoteFilePath Remote file path
  
  @return DirectoryItem
  @throws \GuzzleHttp\Exception\GuzzleException
  @throws Exception
docstring_tokens: Get file detail