@@ -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 | |
| 11 | 10 | class AdminScoreController extends Controller |
@@ -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 | |
| 15 | 11 | class ArticleInfoController extends Controller |
| 16 | 12 | { |
@@ -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 | } |
@@ -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 |
@@ -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 | |
| 10 | 9 | class PagesController extends Controller |
| 11 | 10 | { |
@@ -4,9 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 6 | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 7 | -use Symfony\Component\Config\Definition\Exception\Exception; |
|
| 8 | 7 | use Symfony\Component\HttpFoundation\Request; |
| 9 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
| 10 | 8 | |
| 11 | 9 | class SimpleEditCounterController extends Controller |
| 12 | 10 | { |
@@ -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 | |
@@ -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 | |
| 10 | 9 | class AutomatedEditsController extends Controller |
| 11 | 10 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | use Xtools\Page; |
| 11 | 11 | use Xtools\PagesRepository; |
| 12 | 12 | use Xtools\Project; |
| 13 | -use Xtools\ProjectRepository; |
|
| 14 | 13 | use Xtools\User; |
| 15 | 14 | |
| 16 | 15 | class TopEditsController extends ControllerBase |