@@ -380,7 +380,6 @@ |
||
380 | 380 | |
381 | 381 | /** |
382 | 382 | * Get the size of the diff |
383 | - * @param int $rev The index of the revision within $this->pageHistory |
|
384 | 383 | * @return int Size of the diff |
385 | 384 | */ |
386 | 385 | private function getDiffSize($revIndex) |
@@ -2,15 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace AppBundle\Controller; |
4 | 4 | |
5 | -use DateTime; |
|
6 | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
7 | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
8 | 7 | use Symfony\Component\HttpFoundation\Request; |
9 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
10 | 8 | use Symfony\Component\DependencyInjection\ContainerInterface; |
11 | -use AppBundle\Helper\Apihelper; |
|
12 | -use AppBundle\Helper\PageviewsHelper; |
|
13 | -use AppBundle\Helper\AutomatedEditsHelper; |
|
14 | 9 | use Xtools\ProjectRepository; |
15 | 10 | use Xtools\Page; |
16 | 11 | use Xtools\PagesRepository; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
6 | 6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
7 | -use Symfony\Component\Debug\Exception\ContextErrorException; |
|
8 | 7 | use Symfony\Component\Routing\Exception\InvalidParameterException; |
9 | 8 | use Symfony\Component\HttpFoundation\Request; |
10 | 9 |
@@ -177,7 +177,7 @@ |
||
177 | 177 | * Get a list of namespaces on the given project. |
178 | 178 | * |
179 | 179 | * @param string $project such as en.wikipedia.org |
180 | - * @return string[] Array of namespace IDs (keys) to names (values). |
|
180 | + * @return string Array of namespace IDs (keys) to names (values). |
|
181 | 181 | */ |
182 | 182 | public function namespaces($project) |
183 | 183 | { |
@@ -2,13 +2,11 @@ |
||
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 | 8 | use Psr\Cache\CacheItemPoolInterface; |
10 | 9 | use Symfony\Component\Config\Definition\Exception\Exception; |
11 | -use Symfony\Component\Debug\Exception\FatalErrorException; |
|
12 | 10 | use Symfony\Component\DependencyInjection\ContainerInterface; |
13 | 11 | use Xtools\ProjectRepository; |
14 | 12 |
@@ -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) |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
8 | 8 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
9 | 9 | use Symfony\Component\HttpFoundation\Request; |
10 | -use Symfony\Component\VarDumper\VarDumper; |
|
11 | 10 | use Xtools\Page; |
12 | 11 | use Xtools\PagesRepository; |
13 | 12 | use Xtools\Project; |
@@ -3,12 +3,7 @@ |
||
3 | 3 | namespace AppBundle\Helper; |
4 | 4 | |
5 | 5 | use DateTime; |
6 | -use Doctrine\DBAL\Connection; |
|
7 | -use Psr\Cache\CacheItemPoolInterface; |
|
8 | -use Symfony\Component\Config\Definition\Exception\Exception; |
|
9 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
10 | 6 | use Symfony\Component\DependencyInjection\ContainerInterface; |
11 | -use Symfony\Component\VarDumper\VarDumper; |
|
12 | 7 | use Xtools\ProjectRepository; |
13 | 8 | |
14 | 9 | class AutomatedEditsHelper extends HelperBase |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
6 | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
7 | 7 | use Symfony\Component\HttpFoundation\Request; |
8 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
9 | 8 | use DateTime; |
10 | 9 | use Xtools\ProjectRepository; |
11 | 10 |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
7 | 7 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
8 | 8 | use Symfony\Component\HttpFoundation\Request; |
9 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
10 | 9 | use Xtools\ProjectRepository; |
11 | 10 | |
12 | 11 | class PagesController extends Controller |
@@ -2,10 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace AppBundle\Helper; |
4 | 4 | |
5 | -use Symfony\Component\Config\Definition\Exception\Exception; |
|
6 | 5 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
7 | 6 | use Symfony\Component\DependencyInjection\ContainerInterface; |
8 | -use Symfony\Component\VarDumper\VarDumper; |
|
9 | 7 | |
10 | 8 | class LabsHelper |
11 | 9 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Xtools; |
4 | 4 | |
5 | 5 | use Mediawiki\Api\MediawikiApi; |
6 | -use Symfony\Component\VarDumper\VarDumper; |
|
7 | 6 | |
8 | 7 | /** |
9 | 8 | * A Project is a single wiki that Xtools is querying. |