Hotfix - Renamed occurences of old method name

+ Replaced instances of `getRawFile()` with `getFileContents()`
This commit is contained in:
Benjamin Blake
2021-11-02 14:47:41 -06:00
parent 785d0b43a2
commit dbdff87baf
2 changed files with 3 additions and 3 deletions

View File

@ -149,7 +149,7 @@ class Repositories extends AbstractAllApiRequester
* *
* Example: * Example:
* ``` * ```
* $client->repositories()->getRawFile($owner, $repoName, "README.md", "v2.0.0"); * $client->repositories()->getFileContents($owner, $repoName, "README.md", "v2.0.0");
* ``` * ```
* *
* @param string $owner The owner of the repository * @param string $owner The owner of the repository

View File

@ -82,7 +82,7 @@ if ($repository) {
} }
// print("Getting contents of \"composer.json\" file \n\n"); // print("Getting contents of \"composer.json\" file \n\n");
// $rawFile = $giteaClient->repositories()->getRawFile("Sitelease", "sl-theme-recipe", "composer.json"); // $rawFile = $giteaClient->repositories()->getFileContents("Sitelease", "sl-theme-recipe", "composer.json");
// if ($rawFile) { // if ($rawFile) {
// var_dump(json_encode($rawFile)); // var_dump(json_encode($rawFile));
// print("\n\n"); // print("\n\n");
@ -91,7 +91,7 @@ if ($repository) {
// } // }
// print("Getting contents of \"composer.json\" file \n\n"); // print("Getting contents of \"composer.json\" file \n\n");
// $rawFile = $giteaClient->repositories()->getRawFile("Sitelease", "sl-theme-recipe", "composer.json"); // $rawFile = $giteaClient->repositories()->getFileContents("Sitelease", "sl-theme-recipe", "composer.json");
// if ($rawFile) { // if ($rawFile) {
// var_dump($rawFile); // var_dump($rawFile);
// print("\n\n"); // print("\n\n");