mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2025-10-29 11:02:30 +01:00
Hotfix - Renamed occurences of old method name
+ Replaced instances of `getRawFile()` with `getFileContents()`
This commit is contained in:
@ -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
|
||||
|
||||
@ -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");
|
||||
|
||||
Reference in New Issue
Block a user