@@ -2,11 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace AppBundle\Helper; |
| 4 | 4 | |
| 5 | -use DateInterval; |
|
| 6 | 5 | use Mediawiki\Api\MediawikiApi; |
| 7 | 6 | use Mediawiki\Api\SimpleRequest; |
| 8 | 7 | use Mediawiki\Api\FluentRequest; |
| 9 | -use Psr\Cache\CacheItemPoolInterface; |
|
| 10 | 8 | use Symfony\Component\Config\Definition\Exception\Exception; |
| 11 | 9 | use Symfony\Component\DependencyInjection\ContainerInterface; |
| 12 | 10 | |
@@ -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. |