Skip to content

Commit 081e9ad

Browse files
authored
Merge pull request KnpLabs#644 from KhanhCon/patch-2
Changes to documentation in the "Repositories/Content"
2 parents d2e04e5 + 75772cb commit 081e9ad

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

doc/repo/contents.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,53 @@
44
### Get a repository's README
55

66
```php
7-
$readme = $client->api('repo')->contents()->readme('knp-labs', 'php-github-api', $reference);
7+
$readme = $client->api('repo')->contents()->readme('KnpLabs', 'php-github-api', $reference);
88
```
99

1010
### Get information about a repository file or directory
1111

1212
```php
13-
$fileInfo = $client->api('repo')->contents()->show('knp-labs', 'php-github-api', $path, $reference);
13+
$fileInfo = $client->api('repo')->contents()->show('KnpLabs', 'php-github-api', $path, $reference);
1414
```
1515

1616
### Check that a file or directory exists in the repository
1717
```php
18-
$fileExists = $client->api('repo')->contents()->exists('knp-labs', 'php-github-api', $path, $reference);
18+
$fileExists = $client->api('repo')->contents()->exists('KnpLabs', 'php-github-api', $path, $reference);
1919
```
2020

2121
### Create a file
2222
```php
2323
$committer = array('name' => 'KnpLabs', 'email' => '[email protected]');
2424

25-
$fileInfo = $client->api('repo')->contents()->create('knp-labs', 'php-github-api', $path, $content, $commitMessage, $branch, $committer);
25+
$fileInfo = $client->api('repo')->contents()->create('KnpLabs', 'php-github-api', $path, $content, $commitMessage, $branch, $committer);
2626
```
2727

2828
### Update a file
2929

3030
```php
3131
$committer = array('name' => 'KnpLabs', 'email' => '[email protected]');
32-
$oldFile = $client->api('repo')->contents()->show('knp-labs', 'php-github-api', $path, $branch);
32+
$oldFile = $client->api('repo')->contents()->show('KnpLabs', 'php-github-api', $path, $branch);
3333

34-
$fileInfo = $client->api('repo')->contents()->update('knp-labs', 'php-github-api', $path, $content, $commitMessage, $oldFile['sha'], $branch, $committer);
34+
$fileInfo = $client->api('repo')->contents()->update('KnpLabs', 'php-github-api', $path, $content, $commitMessage, $oldFile['sha'], $branch, $committer);
3535
```
3636

3737
### Remove a file
3838

3939
```php
4040
$committer = array('name' => 'KnpLabs', 'email' => '[email protected]');
41-
$oldFile = $client->api('repo')->contents()->show('knp-labs', 'php-github-api', $path, $branch);
41+
$oldFile = $client->api('repo')->contents()->show('KnpLabs', 'php-github-api', $path, $branch);
4242

43-
$fileInfo = $client->api('repo')->contents()->rm('knp-labs', 'php-github-api', $path, $commitMessage, $oldFile['sha'], $branch, $committer);
43+
$fileInfo = $client->api('repo')->contents()->rm('KnpLabs', 'php-github-api', $path, $commitMessage, $oldFile['sha'], $branch, $committer);
4444
```
4545

4646
### Get repository archive
4747

4848
```php
49-
$archive = $client->api('repo')->contents()->archive('knp-labs', 'php-github-api', $format, $reference);
49+
$archive = $client->api('repo')->contents()->archive('KnpLabs', 'php-github-api', $format, $reference);
5050
```
5151

5252
### Download a file
5353

5454
```php
55-
$fileContent = $client->api('repo')->contents()->download('knp-labs', 'php-github-api', $path, $reference);
55+
$fileContent = $client->api('repo')->contents()->download('KnpLabs', 'php-github-api', $path, $reference);
5656
```

0 commit comments

Comments
 (0)