@@ -152,7 +152,7 @@ |
||
152 | 152 | * Internal method for handling all requests |
153 | 153 | * |
154 | 154 | * @internal |
155 | - * @param $method |
|
155 | + * @param string $method |
|
156 | 156 | * @param $endpoint |
157 | 157 | * @param array|null $data |
158 | 158 | * @param array|null $query |
@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | /** |
41 | 41 | * Creates the forums endpoint |
42 | - * @param null $id |
|
42 | + * @param string $id |
|
43 | 43 | * @return string |
44 | 44 | */ |
45 | 45 | protected function topicsEndpoint($id = null) |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * |
29 | 29 | * @var string |
30 | 30 | */ |
31 | - protected $endpoint ='/discussions/comments' ; |
|
31 | + protected $endpoint = '/discussions/comments'; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * The forums resource endpoint |
@@ -42,7 +42,7 @@ |
||
42 | 42 | /** |
43 | 43 | * Creates the category endpoint (for creating forums) |
44 | 44 | * |
45 | - * @param null $id |
|
45 | + * @param integer $id |
|
46 | 46 | * @return string |
47 | 47 | */ |
48 | 48 | private function categoryEndpoint($id = null) |
@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | /** |
41 | 41 | * Creates the forums endpoint |
42 | - * @param null $id |
|
42 | + * @param string $id |
|
43 | 43 | * @return string |
44 | 44 | */ |
45 | 45 | protected function forumsEndpoint($id = null) |
@@ -12,7 +12,7 @@ |
||
12 | 12 | { |
13 | 13 | |
14 | 14 | /** |
15 | - * @param null $end string |
|
15 | + * @param string $end string |
|
16 | 16 | * @return string |
17 | 17 | */ |
18 | 18 | abstract protected function endpoint($end = null); |
@@ -273,7 +273,7 @@ |
||
273 | 273 | public function monitorForum($id, $userId) |
274 | 274 | { |
275 | 275 | $data = [ |
276 | - 'user_id' => $userId |
|
276 | + 'user_id' => $userId |
|
277 | 277 | ]; |
278 | 278 | |
279 | 279 | return $this->api()->request('POST', $this->forumsEndpoint($id . '/follow'), $data); |