Completed
Push — master ( 518921...f0ef16 )
by Sam
03:45
created
src/AppBundle/Controller/QuoteController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/TopEditsController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/AppBundle/Helper/AutomatedEditsHelper.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -3,12 +3,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/AppBundle/Controller/AdminScoreController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/PagesController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/AppBundle/Helper/LabsHelper.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,8 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/AppBundle/Helper/ApiHelper.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,13 +2,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Xtools/Project.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Xtools/ProjectRepository.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -251,9 +251,9 @@
 block discarded – undo
251 251
         $conn = $this->getProjectsConnection();
252 252
         $pageTable = $this->getTableName($project->getDatabaseName(), 'page');
253 253
         $query = "SELECT page_id "
254
-             . " FROM $pageTable "
255
-             . " WHERE page_namespace = :ns AND page_title = :title AND page_len > 0 "
256
-             . " LIMIT 1";
254
+                . " FROM $pageTable "
255
+                . " WHERE page_namespace = :ns AND page_title = :title AND page_len > 0 "
256
+                . " LIMIT 1";
257 257
         $params = [
258 258
             'ns' => $namespaceId,
259 259
             'title' => $pageTitle,
Please login to merge, or discard this patch.