@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 9 | 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 10 | 10 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 11 | -use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
|
| 12 | 11 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; |
| 13 | 12 | use Symfony\Component\HttpFoundation\Request; |
| 14 | 13 | |
@@ -66,8 +66,7 @@ discard block |
||
| 66 | 66 | $user = $em->getRepository('AppBundle:User') |
| 67 | 67 | ->find($id); |
| 68 | 68 | $title = 'Edit user id: '.$id; |
| 69 | - } |
|
| 70 | - else { |
|
| 69 | + } else { |
|
| 71 | 70 | $user = new User(); |
| 72 | 71 | $title = 'Create new user'; |
| 73 | 72 | } |
@@ -147,8 +146,7 @@ discard block |
||
| 147 | 146 | } |
| 148 | 147 | |
| 149 | 148 | $renderedForm = $form->createView(); |
| 150 | - } |
|
| 151 | - else { |
|
| 149 | + } else { |
|
| 152 | 150 | $message .= 'You must to delete related records before.'; |
| 153 | 151 | $renderedForm = ''; |
| 154 | 152 | } |