Skip to content

Commit 5529dea

Browse files
author
guillermo-fisher
committed
Fixed docblock; no longer overriding "get" -- added "getWithLicenseHash".
1 parent 4a9c53d commit 5529dea

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

lib/Github/Api/Enterprise/ManagementConsole.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ManagementConsole extends AbstractApi
1515
*/
1616
public function configcheck($hash)
1717
{
18-
return $this->get('/setup/api/configcheck', $hash);
18+
return $this->getWithLicenseHash('/setup/api/configcheck', $hash);
1919
}
2020

2121
/**
@@ -27,7 +27,7 @@ public function configcheck($hash)
2727
*/
2828
public function settings($hash)
2929
{
30-
return $this->get('/setup/api/settings', $hash);
30+
return $this->getWithLicenseHash('/setup/api/settings', $hash);
3131
}
3232

3333
/**
@@ -39,7 +39,7 @@ public function settings($hash)
3939
*/
4040
public function maintenance($hash)
4141
{
42-
return $this->get('/setup/api/maintenance', $hash);
42+
return $this->getWithLicenseHash('/setup/api/maintenance', $hash);
4343
}
4444

4545
/**
@@ -51,18 +51,17 @@ public function maintenance($hash)
5151
*/
5252
public function keys($hash)
5353
{
54-
return $this->get('/setup/api/settings/authorized-keys', $hash);
54+
return $this->getWithLicenseHash('/setup/api/settings/authorized-keys', $hash);
5555
}
5656

5757
/**
5858
* Sends an authenticated GET request.
5959
*
60-
* @see \Github\Api\AbstractApi::get()
61-
* @param string $uri
62-
* @param array $hash
60+
* @param string $uri the request URI
61+
* @param string $hash md5 hash of your license
6362
* @return \Guzzle\Http\EntityBodyInterface|mixed|string
6463
*/
65-
protected function get($uri, $hash)
64+
protected function getWithLicenseHash($uri, $hash)
6665
{
6766
return parent::get($uri, array('license_md5' => rawurlencode($hash)));
6867
}

0 commit comments

Comments
 (0)