From 9634720b3f91e8db450a51593f8b991ae5ec7540 Mon Sep 17 00:00:00 2001 From: Jeroen Herczeg Date: Fri, 21 Jul 2017 16:03:52 +0200 Subject: [PATCH] Minor fixes in example code --- doc/search.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/search.md b/doc/search.md index 77b6eb9816d..b798b934d35 100644 --- a/doc/search.md +++ b/doc/search.md @@ -15,7 +15,7 @@ Returns a list of repositories found by such criteria. ### Search code ```php -$repos = $client->api('search')->code('@todo language:php'); +$files = $client->api('search')->code('@todo language:php'); ``` Returns a list of files found by such criteria (containing "@todo" and language==php). @@ -23,7 +23,7 @@ Returns a list of files found by such criteria (containing "@todo" and language= ### Search issues ```php -$repos = $client->api('search')->issues('bug language:php'); +$issues = $client->api('search')->issues('bug language:php'); ``` Returns a list of issues found by such criteria. @@ -31,7 +31,7 @@ Returns a list of issues found by such criteria. ### Search users ```php -$repos = $client->api('search')->users('location:Amsterdam language:php'); +$users = $client->api('search')->users('location:Amsterdam language:php'); ``` Returns a list of users found by such criteria. @@ -42,7 +42,7 @@ You can sort results using 2-3 arguments. ```php $repos = $client->api('search')->repositories('...', 'created', 'asc'); -$repos = $client->api('search')->code('...........', 'indexed', 'desc'); -$repos = $client->api('search')->issues('.........', 'comments', 'asc'); -$repos = $client->api('search')->users('..........', 'followers', 'asc'); +$files = $client->api('search')->code('...........', 'indexed', 'desc'); +$issues = $client->api('search')->issues('.........', 'comments', 'asc'); +$users = $client->api('search')->users('..........', 'followers', 'asc'); ```