Skip to content
This repository was archived by the owner on Jul 28, 2022. It is now read-only.

Commit 66e44ee

Browse files
committed
fix typo $usename -> $username on several files
1 parent 2a7a4fc commit 66e44ee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/GitHub/API/Repo/Commit.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ public function all($username, $repo, $sha = null, $path = null)
5858
* @param string $sha Sha of commit
5959
* @return array|bool Details of the commit or FALSE if the request failed
6060
*/
61-
public function get($usename, $repo, $sha)
61+
public function get($username, $repo, $sha)
6262
{
6363
return $this->processResponse(
64-
$this->requestGet("gists/comments/$id")
64+
$this->requestGet("repos/$username/$repo/commits/$sha")
6565
);
6666
}
6767

lib/GitHub/API/Repo/Download.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Download extends Api
2828
* @return array List of downloads(s) or FALSE if the request
2929
* failed
3030
*/
31-
public function all($usename, $repo, $sha = null, $path = null)
31+
public function all($username, $repo, $sha = null, $path = null)
3232
{
3333
// Optional filters
3434
$params = array(
@@ -53,7 +53,7 @@ public function all($usename, $repo, $sha = null, $path = null)
5353
* @param int $id ID of download
5454
* @return array|bool Details of the download or FALSE if the request failed
5555
*/
56-
public function get($usename, $repo, $id)
56+
public function get($username, $repo, $id)
5757
{
5858
return $this->processResponse(
5959
$this->requestGet("repos/$username/$repo/downloads/$id")

0 commit comments

Comments
 (0)