@@ -7,7 +7,6 @@ |
||
7 | 7 | use Pagerfanta\Pagerfanta; |
8 | 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; |
9 | 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
10 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; |
|
11 | 10 | use Symfony\AppBundle\Entity\User; |
12 | 11 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
13 | 12 | use Symfony\Component\HttpFoundation\Request; |
@@ -2,16 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace AppBundle\Controller; |
4 | 4 | |
5 | +use AppBundle\Entity\Poll; |
|
5 | 6 | use Pagerfanta\Adapter\ArrayAdapter; |
6 | -use Pagerfanta\Adapter\DoctrineORMAdapter; |
|
7 | 7 | use Pagerfanta\Pagerfanta; |
8 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; |
|
9 | 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
10 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; |
|
11 | 9 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
12 | 10 | use Symfony\Component\HttpFoundation\Request; |
13 | 11 | use Symfony\Component\HttpFoundation\Response; |
14 | -use AppBundle\Entity\Poll; |
|
15 | 12 | |
16 | 13 | class VoteController extends Controller |
17 | 14 | { |
@@ -33,11 +33,11 @@ |
||
33 | 33 | */ |
34 | 34 | protected function getCurrentPolls(): array |
35 | 35 | { |
36 | - $currentPolls = $this->getDoctrine() |
|
37 | - ->getRepository('AppBundle:Poll') |
|
38 | - ->findByActive(true); |
|
36 | + $currentPolls = $this->getDoctrine() |
|
37 | + ->getRepository('AppBundle:Poll') |
|
38 | + ->findByActive(true); |
|
39 | 39 | |
40 | - return $currentPolls; |
|
40 | + return $currentPolls; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |