@@ -34,6 +34,9 @@ discard block |
||
34 | 34 | } |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param string $username |
|
39 | + */ |
|
37 | 40 | public function groups($project, $username) |
38 | 41 | { |
39 | 42 | $this->setUp($project); |
@@ -53,6 +56,9 @@ discard block |
||
53 | 56 | return $result; |
54 | 57 | } |
55 | 58 | |
59 | + /** |
|
60 | + * @param string $username |
|
61 | + */ |
|
56 | 62 | public function globalGroups($project, $username) |
57 | 63 | { |
58 | 64 | $this->setUp($project); |
@@ -336,7 +342,7 @@ discard block |
||
336 | 342 | * Adapted from https://github.com/MusikAnimal/pageviews |
337 | 343 | * @param array $params Associative array of params to pass to API |
338 | 344 | * @param string $project Project to query, e.g. en.wikipedia.org |
339 | - * @param string|func $dataKey The key for the main chunk of data, in the query hash |
|
345 | + * @param \Closure $dataKey The key for the main chunk of data, in the query hash |
|
340 | 346 | * (e.g. 'categorymembers' for API:Categorymembers). |
341 | 347 | * If this is a function it is given the response data, |
342 | 348 | * and expected to return the data we want to concatentate. |