diff --git a/src/Api/Repositories.php b/src/Api/Repositories.php index 1653224..a88d2f5 100644 --- a/src/Api/Repositories.php +++ b/src/Api/Repositories.php @@ -149,7 +149,7 @@ class Repositories extends AbstractAllApiRequester * * 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 diff --git a/src/TestRun.php b/src/TestRun.php index 53476ee..ce206ca 100644 --- a/src/TestRun.php +++ b/src/TestRun.php @@ -82,7 +82,7 @@ if ($repository) { } // 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) { // var_dump(json_encode($rawFile)); // print("\n\n"); @@ -91,7 +91,7 @@ if ($repository) { // } // 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) { // var_dump($rawFile); // print("\n\n");