@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace AppBundle\Form; |
4 | 4 | |
5 | 5 | use Symfony\Component\Form\AbstractType; |
6 | -use Symfony\Component\Form\Extension\Core\Type\ButtonType; |
|
7 | -use Symfony\Component\Form\Extension\Core\Type\SubmitType; |
|
8 | 6 | use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
9 | 7 | use Symfony\Component\Form\FormBuilderInterface; |
10 | 8 | use Symfony\Component\OptionsResolver\OptionsResolver; |
@@ -93,13 +93,13 @@ |
||
93 | 93 | $formRequest->setStatus($status); |
94 | 94 | $em->flush(); |
95 | 95 | |
96 | - $this->get('app.email_notification')->sendNotification( |
|
96 | + $this->get('app.email_notification')->sendNotification( |
|
97 | 97 | $formRequest->getUser()->getEmail(), |
98 | 98 | 'Form request action', |
99 | 99 | 'Hello, '.$formRequest->getUser()->getFirstName().'. |
100 | 100 | Your form request was '.$formRequest->getStatus().'.' |
101 | - ); |
|
101 | + ); |
|
102 | 102 | |
103 | - return new Response($status); |
|
103 | + return new Response($status); |
|
104 | 104 | } |
105 | 105 | } |
@@ -76,7 +76,7 @@ |
||
76 | 76 | $status = $request->request->get('status'); |
77 | 77 | $id = $request->request->get('id'); |
78 | 78 | |
79 | - if(!$status || !$id){ |
|
79 | + if (!$status || !$id) { |
|
80 | 80 | return false; |
81 | 81 | } |
82 | 82 |