@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
6 | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
7 | -use Symfony\Component\HttpFoundation\Request; |
|
8 | 7 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
9 | 8 | |
10 | 9 | class DefaultController extends Controller |
@@ -164,7 +164,7 @@ |
||
164 | 164 | private function getRevCount() |
165 | 165 | { |
166 | 166 | $query = "SELECT COUNT(*) AS count FROM " . $this->revisionTable |
167 | - . " WHERE rev_page = '" . $this->pageInfo['id'] . "'"; |
|
167 | + . " WHERE rev_page = '" . $this->pageInfo['id'] . "'"; |
|
168 | 168 | $res = $this->conn->query($query)->fetchAll(); |
169 | 169 | return $res[0]['count']; |
170 | 170 | } |
@@ -6,11 +6,7 @@ |
||
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 Symfony\Component\DependencyInjection\ContainerInterface; |
11 | -use AppBundle\Helper\Apihelper; |
|
12 | -use AppBundle\Helper\PageviewsHelper; |
|
13 | -use AppBundle\Helper\AutomatedEditsHelper; |
|
14 | 10 | use Xtools\ProjectRepository; |
15 | 11 | |
16 | 12 | class ArticleInfoController extends Controller |
@@ -2,7 +2,6 @@ |
||
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; |
@@ -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 |
@@ -66,7 +66,7 @@ |
||
66 | 66 | public function userRightsUrl(Project $project) |
67 | 67 | { |
68 | 68 | return $project->getUrl() . $project->getScriptPath() . "?title=Special:UserRights&user=" . |
69 | - $this->getUsername(); |
|
69 | + $this->getUsername(); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
@@ -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 |
@@ -2,13 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace AppBundle\Controller; |
4 | 4 | |
5 | -use AppBundle\Helper\ApiHelper; |
|
6 | -use AppBundle\Helper\AutomatedEditsHelper; |
|
7 | -use AppBundle\Helper\LabsHelper; |
|
8 | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
9 | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
10 | 7 | use Symfony\Component\HttpFoundation\Request; |
11 | -use Symfony\Component\VarDumper\VarDumper; |
|
12 | 8 | use Xtools\EditCounter; |
13 | 9 | use Xtools\EditCounterRepository; |
14 | 10 | use Xtools\Project; |
@@ -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 |