@@ -96,7 +96,7 @@ |
||
96 | 96 | * List top edits by this user for all pages in a particular namespace. |
97 | 97 | * @param User $user The User. |
98 | 98 | * @param Project $project The project. |
99 | - * @param integer|string $namespaceId The namespace ID or 'all' |
|
99 | + * @param integer $namespaceId The namespace ID or 'all' |
|
100 | 100 | * @return \Symfony\Component\HttpFoundation\Response |
101 | 101 | */ |
102 | 102 | protected function namespaceTopEdits(User $user, Project $project, $namespaceId) |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Xtools; |
4 | 4 | |
5 | 5 | use Xtools\User; |
6 | -use AppBundle\Helper\AutomatedEditsHelper; |
|
7 | 6 | use DateTime; |
8 | 7 | |
9 | 8 | /** |
@@ -2,13 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace AppBundle\Controller; |
4 | 4 | |
5 | -use AppBundle\Helper\AutomatedEditsHelper; |
|
6 | -use Exception; |
|
7 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
|
8 | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
9 | -use Symfony\Component\HttpFoundation\Request; |
|
10 | 6 | use Symfony\Component\HttpFoundation\Response; |
11 | -use Symfony\Component\Debug\Exception\FatalErrorException; |
|
12 | 7 | use FOS\RestBundle\Controller\Annotations as Rest; |
13 | 8 | use FOS\RestBundle\Controller\FOSRestController; |
14 | 9 | use FOS\RestBundle\View\View; |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
10 | 10 | use Symfony\Component\HttpFoundation\Request; |
11 | 11 | use Symfony\Component\HttpFoundation\Response; |
12 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
13 | 12 | use DateTime; |
14 | 13 | use Xtools\ProjectRepository; |
15 | 14 | use Xtools\UserRepository; |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | /** |
26 | 26 | * Get all functions that this class provides. |
27 | - * @return array |
|
27 | + * @return \Twig_SimpleFunction[] |
|
28 | 28 | */ |
29 | 29 | public function getFunctions() |
30 | 30 | { |
@@ -520,7 +520,7 @@ discard block |
||
520 | 520 | |
521 | 521 | /** |
522 | 522 | * Get all filters for this extension. |
523 | - * @return array |
|
523 | + * @return \Twig_SimpleFilter[] |
|
524 | 524 | */ |
525 | 525 | public function getFilters() |
526 | 526 | { |
@@ -12,7 +12,6 @@ |
||
12 | 12 | use Symfony\Component\HttpFoundation\Response; |
13 | 13 | use Xtools\EditCounter; |
14 | 14 | use Xtools\EditCounterRepository; |
15 | -use Xtools\Page; |
|
16 | 15 | use Xtools\Project; |
17 | 16 | use Xtools\ProjectRepository; |
18 | 17 | use Xtools\User; |
@@ -6,7 +6,6 @@ |
||
6 | 6 | namespace Xtools; |
7 | 7 | |
8 | 8 | use Mediawiki\Api\MediawikiApi; |
9 | -use Symfony\Component\VarDumper\VarDumper; |
|
10 | 9 | |
11 | 10 | /** |
12 | 11 | * A Project is a single wiki that XTools is querying. |
@@ -200,7 +200,7 @@ |
||
200 | 200 | /** |
201 | 201 | * Get an array of this project's namespaces and their IDs. |
202 | 202 | * |
203 | - * @return string[] Keys are IDs, values are names. |
|
203 | + * @return string Keys are IDs, values are names. |
|
204 | 204 | */ |
205 | 205 | public function getNamespaces() |
206 | 206 | { |
@@ -7,7 +7,6 @@ |
||
7 | 7 | |
8 | 8 | use DateTime; |
9 | 9 | use Symfony\Component\DependencyInjection\ContainerInterface; |
10 | -use Xtools\ProjectRepository; |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * Helper class for getting information about semi-automated edits. |
@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | /** |
51 | 51 | * Get all functions provided by this extension. |
52 | - * @return array |
|
52 | + * @return \Twig_SimpleFilter[] |
|
53 | 53 | */ |
54 | 54 | public function getFilters() |
55 | 55 | { |
@@ -5,8 +5,6 @@ |
||
5 | 5 | |
6 | 6 | namespace AppBundle\Twig; |
7 | 7 | |
8 | -use Twig_SimpleFunction; |
|
9 | - |
|
10 | 8 | /** |
11 | 9 | * Twig extension filters and functions for MediaWiki project links. |
12 | 10 | */ |