| @@ -251,9 +251,9 @@ | ||
| 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, | 
| @@ -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 | /** | 
| @@ -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; | 
| @@ -11,7 +11,6 @@ | ||
| 11 | 11 | use Symfony\Component\HttpFoundation\RedirectResponse; | 
| 12 | 12 | use Symfony\Component\HttpFoundation\Request; | 
| 13 | 13 | use Symfony\Component\HttpFoundation\Response; | 
| 14 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | |
| 15 | 14 | use Xtools\ProjectRepository; | 
| 16 | 15 | |
| 17 | 16 | /** | 
| @@ -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. |