Skip to content

Commit 496ce73

Browse files
authored
Merge pull request KnpLabs#617 from jeroenherczeg/patch-1
Minor fixes in example code
2 parents b8e128d + 9634720 commit 496ce73

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/search.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ Returns a list of repositories found by such criteria.
1515
### Search code
1616

1717
```php
18-
$repos = $client->api('search')->code('@todo language:php');
18+
$files = $client->api('search')->code('@todo language:php');
1919
```
2020

2121
Returns a list of files found by such criteria (containing "@todo" and language==php).
2222

2323
### Search issues
2424

2525
```php
26-
$repos = $client->api('search')->issues('bug language:php');
26+
$issues = $client->api('search')->issues('bug language:php');
2727
```
2828

2929
Returns a list of issues found by such criteria.
3030

3131
### Search users
3232

3333
```php
34-
$repos = $client->api('search')->users('location:Amsterdam language:php');
34+
$users = $client->api('search')->users('location:Amsterdam language:php');
3535
```
3636

3737
Returns a list of users found by such criteria.
@@ -42,7 +42,7 @@ You can sort results using 2-3 arguments.
4242

4343
```php
4444
$repos = $client->api('search')->repositories('...', 'created', 'asc');
45-
$repos = $client->api('search')->code('...........', 'indexed', 'desc');
46-
$repos = $client->api('search')->issues('.........', 'comments', 'asc');
47-
$repos = $client->api('search')->users('..........', 'followers', 'asc');
45+
$files = $client->api('search')->code('...........', 'indexed', 'desc');
46+
$issues = $client->api('search')->issues('.........', 'comments', 'asc');
47+
$users = $client->api('search')->users('..........', 'followers', 'asc');
4848
```

0 commit comments

Comments
 (0)