Completed
Push — master ( 7611a4...c52643 )
by Michael
03:20
created
src/AppBundle/Controller/VoteController.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
 use AppBundle\Exception\InvalidSort;
7 7
 use AppBundle\Utils\ElectionManager;
8 8
 use AppBundle\Utils\PollManager;
9
-use Pagerfanta\Adapter\ArrayAdapter;
10 9
 use PagerFanta\Exception\Exception;
10
+use Pagerfanta\Adapter\ArrayAdapter;
11 11
 use Pagerfanta\Pagerfanta;
12 12
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
13 13
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 			$sort = $request->request->has('sort') ? $sort = $request->get('sort') : null;
46 46
 			$polls = $this->pollManager->getPolls($sort);
47 47
 			$current = $this->pollManager->getPolls($sort, true);
48
-		} catch ( InvalidSort $e ) {
48
+		} catch (InvalidSort $e) {
49 49
 			throw new NotFoundHttpException('This is an invalid sorting method');
50 50
 		}
51 51
 
Please login to merge, or discard this patch.