@@ -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 | |
12 | 11 | class TopEditsController extends Controller |
13 | 12 | { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | 'username' => $username, |
50 | 50 | ]); |
51 | 51 | } elseif ($project != "") { |
52 | - return $this->redirectToRoute("TopEditsResults", [ 'project'=>$project ]); |
|
52 | + return $this->redirectToRoute("TopEditsResults", ['project'=>$project]); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | // set default wiki so we can populate the namespace selector |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | // Get page info about these 100 pages, so we can use their display title. |
130 | - $titles = array_map(function ($e) { |
|
130 | + $titles = array_map(function($e) { |
|
131 | 131 | return $e['page_title']; |
132 | 132 | }, $editData); |
133 | 133 | $displayTitles = $apiHelper->displayTitles($project, $titles); |
@@ -2,7 +2,6 @@ discard block |
||
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; |
@@ -10,7 +9,6 @@ discard block |
||
10 | 9 | use Symfony\Component\Config\Definition\Exception\Exception; |
11 | 10 | use Symfony\Component\Debug\Exception\FatalErrorException; |
12 | 11 | use Symfony\Component\DependencyInjection\ContainerInterface; |
13 | -use Symfony\Component\VarDumper\VarDumper; |
|
14 | 12 | |
15 | 13 | class ApiHelper extends HelperBase |
16 | 14 | { |