Skip to content

Commit 0dbf9e7

Browse files
committed
Some fixes
1 parent 7a8417b commit 0dbf9e7

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

lib/Github/Api/Issue/Comments.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ class Comments extends AbstractApi
1414
/**
1515
* Configure the body type.
1616
*
17-
* @param string $bodyType
17+
* @param string|null $bodyType
1818
*/
1919
public function configure($bodyType = null)
2020
{
2121
switch ($bodyType) {
2222
case 'raw':
23-
$header = 'Accept: application/vnd.github.%s.raw+json';;
23+
$header = 'Accept: application/vnd.github.%s.raw+json';
2424
break;
2525

2626
case 'text':
@@ -41,10 +41,11 @@ public function configure($bodyType = null)
4141
/**
4242
* Get all comments for an issue.
4343
*
44-
* @param string g$username
44+
* @param string $username
4545
* @param string $repository
4646
* @param int $issue
4747
* @param int $page
48+
*
4849
* @return array
4950
*/
5051
public function all($username, $repository, $issue, $page = 1)
@@ -60,6 +61,7 @@ public function all($username, $repository, $issue, $page = 1)
6061
* @param string $username
6162
* @param string $repository
6263
* @param int $comment
64+
*
6365
* @return array
6466
*/
6567
public function show($username, $repository, $comment)
@@ -74,8 +76,9 @@ public function show($username, $repository, $comment)
7476
* @param string $repository
7577
* @param int $issue
7678
* @param array $params
77-
* @return array
79+
*
7880
* @throws \Github\Exception\MissingArgumentException
81+
* @return array
7982
*/
8083
public function create($username, $repository, $issue, array $params)
8184
{
@@ -93,8 +96,9 @@ public function create($username, $repository, $issue, array $params)
9396
* @param string $repository
9497
* @param int $comment
9598
* @param array $params
96-
* @return array
99+
*
97100
* @throws \Github\Exception\MissingArgumentException
101+
* @return array
98102
*/
99103
public function update($username, $repository, $comment, array $params)
100104
{
@@ -111,6 +115,7 @@ public function update($username, $repository, $comment, array $params)
111115
* @param string $username
112116
* @param string $repository
113117
* @param int $comment
118+
*
114119
* @return array
115120
*/
116121
public function remove($username, $repository, $comment)

0 commit comments

Comments
 (0)