Completed
Push — master ( a3325f...7611a4 )
by Michael
03:16
created
src/AppBundle/Controller/VoteController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use AppBundle\Exception\InvalidSort;
7 7
 use AppBundle\Utils\ElectionManager;
8 8
 use AppBundle\Utils\PollManager;
9
-use AppBundle\Utils\VotableManager;
10 9
 use Pagerfanta\Adapter\ArrayAdapter;
11 10
 use Pagerfanta\Pagerfanta;
12 11
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 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
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
 		try {
72 72
 			$paginator->setCurrentPage($request->query->get('page', 1), false, true);
73
-		} catch ( \PagerFanta\Exception\Exception $e ) {
73
+		} catch (\PagerFanta\Exception\Exception $e) {
74 74
 			throw new NotFoundHttpException('Page not found');
75 75
 		}
76 76
 
Please login to merge, or discard this patch.