@@ -14,13 +14,13 @@ class Comments extends AbstractApi
14
14
/**
15
15
* Configure the body type.
16
16
*
17
- * @param string $bodyType
17
+ * @param string|null $bodyType
18
18
*/
19
19
public function configure ($ bodyType = null )
20
20
{
21
21
switch ($ bodyType ) {
22
22
case 'raw ' :
23
- $ header = 'Accept: application/vnd.github.%s.raw+json ' ;;
23
+ $ header = 'Accept: application/vnd.github.%s.raw+json ' ;
24
24
break ;
25
25
26
26
case 'text ' :
@@ -41,10 +41,11 @@ public function configure($bodyType = null)
41
41
/**
42
42
* Get all comments for an issue.
43
43
*
44
- * @param string g $username
44
+ * @param string $username
45
45
* @param string $repository
46
46
* @param int $issue
47
47
* @param int $page
48
+ *
48
49
* @return array
49
50
*/
50
51
public function all ($ username , $ repository , $ issue , $ page = 1 )
@@ -60,6 +61,7 @@ public function all($username, $repository, $issue, $page = 1)
60
61
* @param string $username
61
62
* @param string $repository
62
63
* @param int $comment
64
+ *
63
65
* @return array
64
66
*/
65
67
public function show ($ username , $ repository , $ comment )
@@ -74,8 +76,9 @@ public function show($username, $repository, $comment)
74
76
* @param string $repository
75
77
* @param int $issue
76
78
* @param array $params
77
- * @return array
79
+ *
78
80
* @throws \Github\Exception\MissingArgumentException
81
+ * @return array
79
82
*/
80
83
public function create ($ username , $ repository , $ issue , array $ params )
81
84
{
@@ -93,8 +96,9 @@ public function create($username, $repository, $issue, array $params)
93
96
* @param string $repository
94
97
* @param int $comment
95
98
* @param array $params
96
- * @return array
99
+ *
97
100
* @throws \Github\Exception\MissingArgumentException
101
+ * @return array
98
102
*/
99
103
public function update ($ username , $ repository , $ comment , array $ params )
100
104
{
@@ -111,6 +115,7 @@ public function update($username, $repository, $comment, array $params)
111
115
* @param string $username
112
116
* @param string $repository
113
117
* @param int $comment
118
+ *
114
119
* @return array
115
120
*/
116
121
public function remove ($ username , $ repository , $ comment )
0 commit comments