@@ -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 | $cacheKey = "groups.$project.$username"; |
@@ -59,6 +62,9 @@ discard block |
||
59 | 62 | return $result; |
60 | 63 | } |
61 | 64 | |
65 | + /** |
|
66 | + * @param string $username |
|
67 | + */ |
|
62 | 68 | public function globalGroups($project, $username) |
63 | 69 | { |
64 | 70 | $cacheKey = "globalgroups.$project.$username"; |
@@ -363,7 +369,7 @@ discard block |
||
363 | 369 | * Adapted from https://github.com/MusikAnimal/pageviews |
364 | 370 | * @param array $params Associative array of params to pass to API |
365 | 371 | * @param string $project Project to query, e.g. en.wikipedia.org |
366 | - * @param string|func $dataKey The key for the main chunk of data, in the query hash |
|
372 | + * @param \Closure $dataKey The key for the main chunk of data, in the query hash |
|
367 | 373 | * (e.g. 'categorymembers' for API:Categorymembers). |
368 | 374 | * If this is a function it is given the response data, |
369 | 375 | * and expected to return the data we want to concatentate. |
@@ -146,7 +146,7 @@ |
||
146 | 146 | |
147 | 147 | /** |
148 | 148 | * |
149 | - * @param $username |
|
149 | + * @param string $username |
|
150 | 150 | * @return integer |
151 | 151 | */ |
152 | 152 | public function getPageCounts($username, $totalRevisions) |