|
@@ 54-57 (lines=4) @@
|
| 51 |
|
*/ |
| 52 |
|
public function getListOwn($type = 'all', $sort = 'full_name', $direction = '') |
| 53 |
|
{ |
| 54 |
|
if (false == in_array($type, array('all', 'owner', 'public', 'private', 'member'))) |
| 55 |
|
{ |
| 56 |
|
throw new \RuntimeException('Invalid type'); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
if (false == in_array($sort, array('created', 'updated', 'pushed', 'full_name'))) |
| 60 |
|
{ |
|
@@ 146-149 (lines=4) @@
|
| 143 |
|
*/ |
| 144 |
|
public function getListOrg($org, $type = 'all') |
| 145 |
|
{ |
| 146 |
|
if (false == in_array($type, array('all', 'public', 'private', 'forks', 'sources', 'member'))) |
| 147 |
|
{ |
| 148 |
|
throw new \RuntimeException('Invalid type'); |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
// Build the request path. |
| 152 |
|
$path = '/orgs/' . $org . '/repos' |