Skip to content

Commit 7cef5ab

Browse files
authored
Merge pull request KnpLabs#431 from syropian/currentuser-starring-per-page-support
Add per_page support to starring()->all()
2 parents 3e756d1 + 52394dc commit 7cef5ab

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/Github/Api/CurrentUser/Starring.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
/**
88
* @link https://developer.github.com/v3/activity/starring/
9+
*
910
* @author Felipe Valtl de Mello <eu@felipe.im>
1011
*/
1112
class Starring extends AbstractApi
@@ -16,13 +17,15 @@ class Starring extends AbstractApi
1617
* @link https://developer.github.com/v3/activity/starring/
1718
*
1819
* @param int $page
20+
* @param int $perPage
1921
*
2022
* @return array
2123
*/
22-
public function all($page = 1)
24+
public function all($page = 1, $perPage = 30)
2325
{
2426
return $this->get('/user/starred', array(
25-
'page' => $page
27+
'page' => $page,
28+
'per_page' => $perPage,
2629
));
2730
}
2831

0 commit comments

Comments
 (0)